A collection of pointers to be freed when this Telnet object is disposed.
This is an internal pointer to the heap where the telnet object is contained in c.
A map of pointers to their respective Telnet objects for event routing.
When the runtime is finally initialized, this promise will resolve, and telnet objects can finally be instantiated.
Begin COMPRESS2.
Call this method when the connection is disposed or you will have memory leaks.
Emit a "mssp" event with a mssp event object.
Emit a "environ" event with a environ event object.
Emit a "compress" event with a compress event object.
Emit a "ttype" event with a ttype event object.
Emit a "zmp" event with a zmp event object.
Emit a "sb" event with a sb event object.
Emit a "error" event with a error event object.
Emit a "send" event with a data event object.
Emit a "data" event with a data event object.
Emit a "iac" event with a iac event object.
Emit a "negotiate" event with a negotiate event object.
Whenever an IAC event must be emitted, this method will automatically generate a SEND event.
Format: [IAC, CMD]
The TelnetCommand to be sent.
Send a WILL, WONT, DO or DONT negotiation for a given option. This automatically generates a SEND event.
DO, DONT, WILL, or WONT
The telnet option.
Listen for an mssp event. The callback accepts a mssp event object.
Listen for an environ event. The callback accepts a environ event object.
Listen for an compress event. The callback accepts a compress event object.
Listen for an ttype event. The callback accepts a ttype event object.
Listen for an zmp event. The callback accepts a zmp event object.
Listen for an sb event. The callback accepts a sb event object.
Listen for an error event. The callback accepts a error event object.
Listen for a send event. The callback accepts a data event object with a payload. This payload must be written to the socket immediately, because the data will be freed by the runtime after the event fires.
Listen for a data event. The callback accepts a data event object. This payload must be treated as a telnet message or copied immediately, because the data will be freed by the runtime after the event fires.
Listen for an iac event. The callback accepts a iac event object.
Listen for a DO, DONT, WILL or WONT event. The callback accepts a NegotiationEvent object.
Whenever a socket receives a message, call this method with the array of bytes that were received.
An arraylike reference that contains byte values.
Send raw bytes through telnet so that the bytes are encoded properly.
The data to be sent.
Send a string encoded to ASCII through telnet.
The string to be sent.
Send a subnegotiation event through telnet.
The telnet option for subnegotiation.
The data to be encoded.
Send a ZMP command, and a list of optional arguments.
Create a TelnetEvent from a given pointer.
A routing function that gets called from web assembly when a Telnet object must fire an event.
Generated using TypeDoc
A state machine that implements the telnet specification and calls out into web assembly to encode and decode messages from a socket.