-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): implemented telnet options linemode and sga
- present a DO for SGa - answer with WILL for LINEMODE - updated readme for telnet feature - its now possible to access the previous value of a negotiation - handler can now be marked as dynamic which does allow later modifications
- Loading branch information
Showing
15 changed files
with
324 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 28 additions & 3 deletions
31
backend/src/features/telnet/types/telnet-negotiation-result.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,33 @@ | ||
import { TelnetControlSequences } from './telnet-control-sequences.js'; | ||
import { TelnetSubnegotiationResult } from './telnet-subnegotiation-result.js'; | ||
|
||
export type TelnetNegotiationResult = { | ||
subNegotiationResult?: TelnetSubnegotiationResult; | ||
/** | ||
* The control sequence received from the server (DO, DON'T, WILL, WON'T). | ||
*/ | ||
server?: TelnetControlSequences; | ||
|
||
controlSequence: TelnetControlSequences; | ||
/** | ||
* The control sequence sent by the client (DO, DON'T, WILL, WON'T). | ||
*/ | ||
client?: TelnetControlSequences; | ||
|
||
/** | ||
* Optional subnegotiation data exchanged between the server and client. | ||
*/ | ||
subnegotiation?: { | ||
/** | ||
* The data chunk sent by the server during subnegotiation. | ||
*/ | ||
serverChunks?: string[]; | ||
|
||
/** | ||
* The data chunk sent by the client during subnegotiation. | ||
*/ | ||
clientChunks?: string[]; | ||
|
||
/** | ||
* The client option used during subnegotiation (e.g., a charset or mode). | ||
*/ | ||
clientOption?: string; | ||
}; | ||
}; |
Oops, something went wrong.