The telnet event type.
Interpet this event as a Compress event.
struct compress_T { enum telnet_event_type_t _type; -> TelnetEventType unsigned char state; -> boolean } compress;
Interpret this event as a data event. Either TelnetEventType.{Data | Send}.
struct data_t { enum telnet_event_type_t _type; -> EventType const char *buffer; -> string size_t size; -> number } data;
Interpret this event as an Environ event.
struct environ_t { enum telnet_event_type_t _type; -> TelnetEventType const struct telnet_environ_t *values; -> IEnvironVar[] size_t size; -> number unsigned char cmd; -> EnvironCommand } environ;
Interpret this event as an error.
struct error_t { enum telnet_event_type_t _type; -> TelnetEventType const char *file; -> string const char *func; -> string const char *msg; -> string int line; -> number telnet_error_t errcode; -> TelnetErrorCode } error;
Interpret this event as an IAC (Interpret as Command)
struct iac_t { enum telnet_event_type_t _type; -> TelnetEventType unsigned char cmd; -> TelnetOption } iac;
Interpret this event as a MSSP event.
struct mssp_t { enum telnet_event_type_t _type; -> TelnetEventType const struct telnet_environ_t *values; -> IEnvironVar[] size_t size; -> number } mssp;
Interpret this event as a Negotiation event. I.E. DO, DONT, WILL, WONT
struct negotiate_t { enum telnet_event_type_t _type; -> TelnetEventType unsigned char telopt; -> TelnetOption } neg;
Interpret this event as a subnegotiation.
struct subnegotiation_t { enum telnet_event_type_t _type; -> TelnetEventType const char *buffer; -> Uint8Array size_t size; -> number unsigned char telopt; -> TelnetOption } sub;
Interpret this event as a TType event.
struct ttype_t { enum telnet_event_type_t _type; -> TelnetEventType unsigned char cmd; -> TTypeCommand const char* name; -> string } ttype;
Interpret this event as a ZMP event.
struct zmp_t { enum telnet_event_type_t _type; -> TelnetEventType const char **argv; -> string[] size_t argc; -> number } zmp;
Generated using TypeDoc
A basis for all telnet events. Internal use only. It uses the internal properties to "Cast" the event to the appropriate type.