Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TelnetEvent

A basis for all telnet events. Internal use only. It uses the internal properties to "Cast" the event to the appropriate type.

Hierarchy

  • TelnetEvent

Index

Constructors

constructor

Properties

pointer

pointer: number

type

The telnet event type.

Accessors

compress

  • Interpet this event as a Compress event.

    struct compress_T { enum telnet_event_type_t _type; -> TelnetEventType unsigned char state; -> boolean } compress;

    Returns ICompressEvent

data

  • 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;

    Returns IDataEvent

environ

  • 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;

    Returns IEnvironEvent

error

  • 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;

    Returns IErrorEvent

iac

  • Interpret this event as an IAC (Interpret as Command)

    struct iac_t { enum telnet_event_type_t _type; -> TelnetEventType unsigned char cmd; -> TelnetOption } iac;

    Returns IIACEvent

mssp

  • 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;

    Returns IMSSPEvent

negotiate

  • 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;

    Returns INegotiationEvent

sub

  • 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;

    Returns ISubnegotiationEvent

ttype

  • 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;

    Returns ITType

zmp

  • 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;

    Returns IZMPEvent

Generated using TypeDoc