class

Telnet::Parser

Inherits Reference < Object

The Parser class is responsible for parsing input strings and extracting relevant data.

Usage

parser = Parser.new
result = parser.parse("input string")
puts result

The parse method takes an input string and returns the parsed result.

Example

parser = Parser.new
input = "example input"
parsed_data = parser.parse(input)
puts parsed_data

In this example, the Parser instance is created, and the parse method is called with an input string. The parsed data is then printed to the console.

Telnet Commands and Subnegotiations

The Parser class handles Telnet commands and subnegotiations. There can be a default handler for each command and subnegotiations. The default handler can be overridden at the instance level.

You can set a callback at the class level by doing the following:

Parser.on_do_echo do
  io.write(Telnet::Command.new_will(Telnet::Option::ECHO))
end

You can set a callback at the instance level by doing the following:

parser = Parser.new
parser.on_do_echo do
  io.write(Telnet::Command.new_will(Telnet::Option::ECHO))
end

You can set a similar callback for subnegotiations at the class level or instance level. An example of setting a subnegotiation callback at the instance level for the NAWS (Negotiate About Window Size) option is shown below for both the command and subnegotiation.

parser = Parser.new
parser.on_will_naws do
  io.write(Telnet::Command.new_subneg(Telnet::Option::NAWS, data))
end

# Client sends IAC SB NAWS <data> <data> <data> <data> IAC SE
parser.on_subnegotiation_naws do |data|
  # Convert the first two bytes to a 16-bit for width
  width = (naws[0].to_u16 << 8) | naws[1].to_u16
  # Convert the next two bytes to a 16-bit for height
  height = (naws[2].to_u16 << 8) | naws[3].to_u16
end

Constructors

new(io : Descriptor)
Source

Class methods

escape(data : Array(UInt8)) : Array(UInt8)
Source
on_ayt

Set the callback to be called when an AYT (Are You There) command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_authentication

Set the callback to be called when a do "AUTHENTICATION" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_binary

Set the callback to be called when a do "BINARY" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_bm

Set the callback to be called when a do "BM" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_comport

Set the callback to be called when a do "COMPORT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_det

Set the callback to be called when a do "DET" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_echo

Set the callback to be called when a do "ECHO" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_encrypt

Set the callback to be called when a do "ENCRYPT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_eor

Set the callback to be called when a do "EOR" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_exopl

Set the callback to be called when a do "EXOPL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_extascii

Set the callback to be called when a do "EXTASCII" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_forward_x

Set the callback to be called when a do "FORWARD_X" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_gmcp

Set the callback to be called when a do "GMCP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_lflow

Set the callback to be called when a do "LFLOW" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_linemode

Set the callback to be called when a do "LINEMODE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_logout

Set the callback to be called when a do "LOGOUT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_mccp2

Set the callback to be called when a do "MCCP2" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_mccp3

Set the callback to be called when a do "MCCP3" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_msdp

Set the callback to be called when a do "MSDP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_msp

Set the callback to be called when a do "MSP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_mssp

Set the callback to be called when a do "MSSP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_mxp

Set the callback to be called when a do "MXP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_nams

Set the callback to be called when a do "NAMS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_naocrd

Set the callback to be called when a do "NAOCRD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_naoffd

Set the callback to be called when a do "NAOFFD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_naohtd

Set the callback to be called when a do "NAOHTD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_naohts

Set the callback to be called when a do "NAOHTS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_naol

Set the callback to be called when a do "NAOL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_naolfd

Set the callback to be called when a do "NAOLFD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_naop

Set the callback to be called when a do "NAOP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_naovtd

Set the callback to be called when a do "NAOVTD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_naovts

Set the callback to be called when a do "NAOVTS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_naws

Set the callback to be called when a do "NAWS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_newenviron

Set the callback to be called when a do "NEWENVIRON" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_oldenviron

Set the callback to be called when a do "OLDENVIRON" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_outmrk

Set the callback to be called when a do "OUTMRK" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_rcp

Set the callback to be called when a do "RCP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_rcte

Set the callback to be called when a do "RCTE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_regime3270

Set the callback to be called when a do "REGIME3270" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_send_url

Set the callback to be called when a do "SEND_URL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_sga

Set the callback to be called when a do "SGA" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_sndloc

Set the callback to be called when a do "SNDLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_start_tls

Set the callback to be called when a do "START_TLS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_status

Set the callback to be called when a do "STATUS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_supdup

Set the callback to be called when a do "SUPDUP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_supdupoutput

Set the callback to be called when a do "SUPDUPOUTPUT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_suppress_local_echo

Set the callback to be called when a do "SUPPRESS_LOCAL_ECHO" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_tm

Set the callback to be called when a do "TM" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_tspeed

Set the callback to be called when a do "TSPEED" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_ttyloc

Set the callback to be called when a do "TTYLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_ttype

Set the callback to be called when a do "TTYPE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_tuid

Set the callback to be called when a do "TUID" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_x3pad

Set the callback to be called when a do "X3PAD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_do_xdisploc

Set the callback to be called when a do "XDISPLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_authentication

Set the callback to be called when a dont "AUTHENTICATION" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_binary

Set the callback to be called when a dont "BINARY" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_bm

Set the callback to be called when a dont "BM" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_comport

Set the callback to be called when a dont "COMPORT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_det

Set the callback to be called when a dont "DET" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_echo

Set the callback to be called when a dont "ECHO" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_encrypt

Set the callback to be called when a dont "ENCRYPT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_eor

Set the callback to be called when a dont "EOR" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_exopl

Set the callback to be called when a dont "EXOPL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_extascii

Set the callback to be called when a dont "EXTASCII" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_forward_x

Set the callback to be called when a dont "FORWARD_X" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_gmcp

Set the callback to be called when a dont "GMCP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_lflow

Set the callback to be called when a dont "LFLOW" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_linemode

Set the callback to be called when a dont "LINEMODE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_logout

Set the callback to be called when a dont "LOGOUT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_mccp2

Set the callback to be called when a dont "MCCP2" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_mccp3

Set the callback to be called when a dont "MCCP3" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_msdp

Set the callback to be called when a dont "MSDP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_msp

Set the callback to be called when a dont "MSP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_mssp

Set the callback to be called when a dont "MSSP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_mxp

Set the callback to be called when a dont "MXP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_nams

Set the callback to be called when a dont "NAMS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_naocrd

Set the callback to be called when a dont "NAOCRD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_naoffd

Set the callback to be called when a dont "NAOFFD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_naohtd

Set the callback to be called when a dont "NAOHTD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_naohts

Set the callback to be called when a dont "NAOHTS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_naol

Set the callback to be called when a dont "NAOL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_naolfd

Set the callback to be called when a dont "NAOLFD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_naop

Set the callback to be called when a dont "NAOP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_naovtd

Set the callback to be called when a dont "NAOVTD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_naovts

Set the callback to be called when a dont "NAOVTS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_naws

Set the callback to be called when a dont "NAWS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_newenviron

Set the callback to be called when a dont "NEWENVIRON" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_oldenviron

Set the callback to be called when a dont "OLDENVIRON" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_outmrk

Set the callback to be called when a dont "OUTMRK" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_rcp

Set the callback to be called when a dont "RCP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_rcte

Set the callback to be called when a dont "RCTE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_regime3270

Set the callback to be called when a dont "REGIME3270" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_send_url

Set the callback to be called when a dont "SEND_URL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_sga

Set the callback to be called when a dont "SGA" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_sndloc

Set the callback to be called when a dont "SNDLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_start_tls

Set the callback to be called when a dont "START_TLS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_status

Set the callback to be called when a dont "STATUS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_supdup

Set the callback to be called when a dont "SUPDUP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_supdupoutput

Set the callback to be called when a dont "SUPDUPOUTPUT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_suppress_local_echo

Set the callback to be called when a dont "SUPPRESS_LOCAL_ECHO" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_tm

Set the callback to be called when a dont "TM" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_tspeed

Set the callback to be called when a dont "TSPEED" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_ttyloc

Set the callback to be called when a dont "TTYLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_ttype

Set the callback to be called when a dont "TTYPE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_tuid

Set the callback to be called when a dont "TUID" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_x3pad

Set the callback to be called when a dont "X3PAD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_dont_xdisploc

Set the callback to be called when a dont "XDISPLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_subnegotiation_authentication

Set the callback to be called when a subnegotiation for the "AUTHENTICATION" option is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_subnegotiation_comport

Set the callback to be called when a subnegotiation for the "COMPORT" option is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_subnegotiation_encrypt

Set the callback to be called when a subnegotiation for the "ENCRYPT" option is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_subnegotiation_extascii

Set the callback to be called when a subnegotiation for the "EXTASCII" option is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_subnegotiation_lflow

Set the callback to be called when a subnegotiation for the "LFLOW" option is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_subnegotiation_linemode

Set the callback to be called when a subnegotiation for the "LINEMODE" option is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_subnegotiation_naws

Set the callback to be called when a subnegotiation for the "NAWS" option is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_subnegotiation_newenviron

Set the callback to be called when a subnegotiation for the "NEWENVIRON" option is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_subnegotiation_tspeed

Set the callback to be called when a subnegotiation for the "TSPEED" option is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_subnegotiation_ttype

Set the callback to be called when a subnegotiation for the "TTYPE" option is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_subnegotiation_xdisploc

Set the callback to be called when a subnegotiation for the "XDISPLOC" option is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_authentication

Set the callback to be called when a will "AUTHENTICATION" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_binary

Set the callback to be called when a will "BINARY" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_bm

Set the callback to be called when a will "BM" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_comport

Set the callback to be called when a will "COMPORT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_det

Set the callback to be called when a will "DET" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_echo

Set the callback to be called when a will "ECHO" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_encrypt

Set the callback to be called when a will "ENCRYPT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_eor

Set the callback to be called when a will "EOR" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_exopl

Set the callback to be called when a will "EXOPL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_extascii

Set the callback to be called when a will "EXTASCII" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_forward_x

Set the callback to be called when a will "FORWARD_X" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_gmcp

Set the callback to be called when a will "GMCP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_lflow

Set the callback to be called when a will "LFLOW" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_linemode

Set the callback to be called when a will "LINEMODE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_logout

Set the callback to be called when a will "LOGOUT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_mccp2

Set the callback to be called when a will "MCCP2" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_mccp3

Set the callback to be called when a will "MCCP3" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_msdp

Set the callback to be called when a will "MSDP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_msp

Set the callback to be called when a will "MSP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_mssp

Set the callback to be called when a will "MSSP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_mxp

Set the callback to be called when a will "MXP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_nams

Set the callback to be called when a will "NAMS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_naocrd

Set the callback to be called when a will "NAOCRD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_naoffd

Set the callback to be called when a will "NAOFFD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_naohtd

Set the callback to be called when a will "NAOHTD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_naohts

Set the callback to be called when a will "NAOHTS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_naol

Set the callback to be called when a will "NAOL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_naolfd

Set the callback to be called when a will "NAOLFD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_naop

Set the callback to be called when a will "NAOP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_naovtd

Set the callback to be called when a will "NAOVTD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_naovts

Set the callback to be called when a will "NAOVTS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_naws

Set the callback to be called when a will "NAWS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_newenviron

Set the callback to be called when a will "NEWENVIRON" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_oldenviron

Set the callback to be called when a will "OLDENVIRON" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_outmrk

Set the callback to be called when a will "OUTMRK" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_rcp

Set the callback to be called when a will "RCP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_rcte

Set the callback to be called when a will "RCTE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_regime3270

Set the callback to be called when a will "REGIME3270" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_send_url

Set the callback to be called when a will "SEND_URL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_sga

Set the callback to be called when a will "SGA" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_sndloc

Set the callback to be called when a will "SNDLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_start_tls

Set the callback to be called when a will "START_TLS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_status

Set the callback to be called when a will "STATUS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_supdup

Set the callback to be called when a will "SUPDUP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_supdupoutput

Set the callback to be called when a will "SUPDUPOUTPUT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_suppress_local_echo

Set the callback to be called when a will "SUPPRESS_LOCAL_ECHO" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_tm

Set the callback to be called when a will "TM" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_tspeed

Set the callback to be called when a will "TSPEED" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_ttyloc

Set the callback to be called when a will "TTYLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_ttype

Set the callback to be called when a will "TTYPE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_tuid

Set the callback to be called when a will "TUID" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_x3pad

Set the callback to be called when a will "X3PAD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_will_xdisploc

Set the callback to be called when a will "XDISPLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_authentication

Set the callback to be called when a wont "AUTHENTICATION" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_binary

Set the callback to be called when a wont "BINARY" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_bm

Set the callback to be called when a wont "BM" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_comport

Set the callback to be called when a wont "COMPORT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_det

Set the callback to be called when a wont "DET" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_echo

Set the callback to be called when a wont "ECHO" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_encrypt

Set the callback to be called when a wont "ENCRYPT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_eor

Set the callback to be called when a wont "EOR" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_exopl

Set the callback to be called when a wont "EXOPL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_extascii

Set the callback to be called when a wont "EXTASCII" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_forward_x

Set the callback to be called when a wont "FORWARD_X" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_gmcp

Set the callback to be called when a wont "GMCP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_lflow

Set the callback to be called when a wont "LFLOW" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_linemode

Set the callback to be called when a wont "LINEMODE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_logout

Set the callback to be called when a wont "LOGOUT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_mccp2

Set the callback to be called when a wont "MCCP2" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_mccp3

Set the callback to be called when a wont "MCCP3" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_msdp

Set the callback to be called when a wont "MSDP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_msp

Set the callback to be called when a wont "MSP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_mssp

Set the callback to be called when a wont "MSSP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_mxp

Set the callback to be called when a wont "MXP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_nams

Set the callback to be called when a wont "NAMS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_naocrd

Set the callback to be called when a wont "NAOCRD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_naoffd

Set the callback to be called when a wont "NAOFFD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_naohtd

Set the callback to be called when a wont "NAOHTD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_naohts

Set the callback to be called when a wont "NAOHTS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_naol

Set the callback to be called when a wont "NAOL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_naolfd

Set the callback to be called when a wont "NAOLFD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_naop

Set the callback to be called when a wont "NAOP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_naovtd

Set the callback to be called when a wont "NAOVTD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_naovts

Set the callback to be called when a wont "NAOVTS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_naws

Set the callback to be called when a wont "NAWS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_newenviron

Set the callback to be called when a wont "NEWENVIRON" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_oldenviron

Set the callback to be called when a wont "OLDENVIRON" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_outmrk

Set the callback to be called when a wont "OUTMRK" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_rcp

Set the callback to be called when a wont "RCP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_rcte

Set the callback to be called when a wont "RCTE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_regime3270

Set the callback to be called when a wont "REGIME3270" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_send_url

Set the callback to be called when a wont "SEND_URL" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_sga

Set the callback to be called when a wont "SGA" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_sndloc

Set the callback to be called when a wont "SNDLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_start_tls

Set the callback to be called when a wont "START_TLS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_status

Set the callback to be called when a wont "STATUS" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_supdup

Set the callback to be called when a wont "SUPDUP" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_supdupoutput

Set the callback to be called when a wont "SUPDUPOUTPUT" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_suppress_local_echo

Set the callback to be called when a wont "SUPPRESS_LOCAL_ECHO" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_tm

Set the callback to be called when a wont "TM" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_tspeed

Set the callback to be called when a wont "TSPEED" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_ttyloc

Set the callback to be called when a wont "TTYLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_ttype

Set the callback to be called when a wont "TTYPE" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_tuid

Set the callback to be called when a wont "TUID" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_x3pad

Set the callback to be called when a wont "X3PAD" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source
on_wont_xdisploc

Set the callback to be called when a wont "XDISPLOC" command is received at the class level and will be default for all instances. The callback can be overridden at the instance level.

Source

Instance methods

charmode=(charmode : Bool)

Enable character mode. When enabled the parser will send individual characters to the receive_data_handler. When it is disabled the parser will send the entire buffer to the receive_data_handler after processing telnet protocol data.

Source
charmode?

Enable character mode. When enabled the parser will send individual characters to the receive_data_handler. When it is disabled the parser will send the entire buffer to the receive_data_handler after processing telnet protocol data.

Source
echo=(echo : Bool)

Enable echo mode. When enabled the parser will send the data back to the client. When disabled the parser will not send the data back to the client.

Source
echo?

Enable echo mode. When enabled the parser will send the data back to the client. When disabled the parser will not send the data back to the client.

Source
on_ayt

Set the callback to be called when an AYT (Are You There) command is received at the instance level.

Source
on_do_authentication

Set the callback to be called when a do "AUTHENTICATION" command is received at the instance level.

Source
on_do_binary

Set the callback to be called when a do "BINARY" command is received at the instance level.

Source
on_do_bm

Set the callback to be called when a do "BM" command is received at the instance level.

Source
on_do_comport

Set the callback to be called when a do "COMPORT" command is received at the instance level.

Source
on_do_det

Set the callback to be called when a do "DET" command is received at the instance level.

Source
on_do_echo

Set the callback to be called when a do "ECHO" command is received at the instance level.

Source
on_do_encrypt

Set the callback to be called when a do "ENCRYPT" command is received at the instance level.

Source
on_do_eor

Set the callback to be called when a do "EOR" command is received at the instance level.

Source
on_do_exopl

Set the callback to be called when a do "EXOPL" command is received at the instance level.

Source
on_do_extascii

Set the callback to be called when a do "EXTASCII" command is received at the instance level.

Source
on_do_forward_x

Set the callback to be called when a do "FORWARD_X" command is received at the instance level.

Source
on_do_gmcp

Set the callback to be called when a do "GMCP" command is received at the instance level.

Source
on_do_lflow

Set the callback to be called when a do "LFLOW" command is received at the instance level.

Source
on_do_linemode

Set the callback to be called when a do "LINEMODE" command is received at the instance level.

Source
on_do_logout

Set the callback to be called when a do "LOGOUT" command is received at the instance level.

Source
on_do_mccp2

Set the callback to be called when a do "MCCP2" command is received at the instance level.

Source
on_do_mccp3

Set the callback to be called when a do "MCCP3" command is received at the instance level.

Source
on_do_msdp

Set the callback to be called when a do "MSDP" command is received at the instance level.

Source
on_do_msp

Set the callback to be called when a do "MSP" command is received at the instance level.

Source
on_do_mssp

Set the callback to be called when a do "MSSP" command is received at the instance level.

Source
on_do_mxp

Set the callback to be called when a do "MXP" command is received at the instance level.

Source
on_do_nams

Set the callback to be called when a do "NAMS" command is received at the instance level.

Source
on_do_naocrd

Set the callback to be called when a do "NAOCRD" command is received at the instance level.

Source
on_do_naoffd

Set the callback to be called when a do "NAOFFD" command is received at the instance level.

Source
on_do_naohtd

Set the callback to be called when a do "NAOHTD" command is received at the instance level.

Source
on_do_naohts

Set the callback to be called when a do "NAOHTS" command is received at the instance level.

Source
on_do_naol

Set the callback to be called when a do "NAOL" command is received at the instance level.

Source
on_do_naolfd

Set the callback to be called when a do "NAOLFD" command is received at the instance level.

Source
on_do_naop

Set the callback to be called when a do "NAOP" command is received at the instance level.

Source
on_do_naovtd

Set the callback to be called when a do "NAOVTD" command is received at the instance level.

Source
on_do_naovts

Set the callback to be called when a do "NAOVTS" command is received at the instance level.

Source
on_do_naws

Set the callback to be called when a do "NAWS" command is received at the instance level.

Source
on_do_newenviron

Set the callback to be called when a do "NEWENVIRON" command is received at the instance level.

Source
on_do_oldenviron

Set the callback to be called when a do "OLDENVIRON" command is received at the instance level.

Source
on_do_outmrk

Set the callback to be called when a do "OUTMRK" command is received at the instance level.

Source
on_do_rcp

Set the callback to be called when a do "RCP" command is received at the instance level.

Source
on_do_rcte

Set the callback to be called when a do "RCTE" command is received at the instance level.

Source
on_do_regime3270

Set the callback to be called when a do "REGIME3270" command is received at the instance level.

Source
on_do_send_url

Set the callback to be called when a do "SEND_URL" command is received at the instance level.

Source
on_do_sga

Set the callback to be called when a do "SGA" command is received at the instance level.

Source
on_do_sndloc

Set the callback to be called when a do "SNDLOC" command is received at the instance level.

Source
on_do_start_tls

Set the callback to be called when a do "START_TLS" command is received at the instance level.

Source
on_do_status

Set the callback to be called when a do "STATUS" command is received at the instance level.

Source
on_do_supdup

Set the callback to be called when a do "SUPDUP" command is received at the instance level.

Source
on_do_supdupoutput

Set the callback to be called when a do "SUPDUPOUTPUT" command is received at the instance level.

Source
on_do_suppress_local_echo

Set the callback to be called when a do "SUPPRESS_LOCAL_ECHO" command is received at the instance level.

Source
on_do_tm

Set the callback to be called when a do "TM" command is received at the instance level.

Source
on_do_tspeed

Set the callback to be called when a do "TSPEED" command is received at the instance level.

Source
on_do_ttyloc

Set the callback to be called when a do "TTYLOC" command is received at the instance level.

Source
on_do_ttype

Set the callback to be called when a do "TTYPE" command is received at the instance level.

Source
on_do_tuid

Set the callback to be called when a do "TUID" command is received at the instance level.

Source
on_do_x3pad

Set the callback to be called when a do "X3PAD" command is received at the instance level.

Source
on_do_xdisploc

Set the callback to be called when a do "XDISPLOC" command is received at the instance level.

Source
on_dont_authentication

Set the callback to be called when a dont "AUTHENTICATION" command is received at the instance level.

Source
on_dont_binary

Set the callback to be called when a dont "BINARY" command is received at the instance level.

Source
on_dont_bm

Set the callback to be called when a dont "BM" command is received at the instance level.

Source
on_dont_comport

Set the callback to be called when a dont "COMPORT" command is received at the instance level.

Source
on_dont_det

Set the callback to be called when a dont "DET" command is received at the instance level.

Source
on_dont_echo

Set the callback to be called when a dont "ECHO" command is received at the instance level.

Source
on_dont_encrypt

Set the callback to be called when a dont "ENCRYPT" command is received at the instance level.

Source
on_dont_eor

Set the callback to be called when a dont "EOR" command is received at the instance level.

Source
on_dont_exopl

Set the callback to be called when a dont "EXOPL" command is received at the instance level.

Source
on_dont_extascii

Set the callback to be called when a dont "EXTASCII" command is received at the instance level.

Source
on_dont_forward_x

Set the callback to be called when a dont "FORWARD_X" command is received at the instance level.

Source
on_dont_gmcp

Set the callback to be called when a dont "GMCP" command is received at the instance level.

Source
on_dont_lflow

Set the callback to be called when a dont "LFLOW" command is received at the instance level.

Source
on_dont_linemode

Set the callback to be called when a dont "LINEMODE" command is received at the instance level.

Source
on_dont_logout

Set the callback to be called when a dont "LOGOUT" command is received at the instance level.

Source
on_dont_mccp2

Set the callback to be called when a dont "MCCP2" command is received at the instance level.

Source
on_dont_mccp3

Set the callback to be called when a dont "MCCP3" command is received at the instance level.

Source
on_dont_msdp

Set the callback to be called when a dont "MSDP" command is received at the instance level.

Source
on_dont_msp

Set the callback to be called when a dont "MSP" command is received at the instance level.

Source
on_dont_mssp

Set the callback to be called when a dont "MSSP" command is received at the instance level.

Source
on_dont_mxp

Set the callback to be called when a dont "MXP" command is received at the instance level.

Source
on_dont_nams

Set the callback to be called when a dont "NAMS" command is received at the instance level.

Source
on_dont_naocrd

Set the callback to be called when a dont "NAOCRD" command is received at the instance level.

Source
on_dont_naoffd

Set the callback to be called when a dont "NAOFFD" command is received at the instance level.

Source
on_dont_naohtd

Set the callback to be called when a dont "NAOHTD" command is received at the instance level.

Source
on_dont_naohts

Set the callback to be called when a dont "NAOHTS" command is received at the instance level.

Source
on_dont_naol

Set the callback to be called when a dont "NAOL" command is received at the instance level.

Source
on_dont_naolfd

Set the callback to be called when a dont "NAOLFD" command is received at the instance level.

Source
on_dont_naop

Set the callback to be called when a dont "NAOP" command is received at the instance level.

Source
on_dont_naovtd

Set the callback to be called when a dont "NAOVTD" command is received at the instance level.

Source
on_dont_naovts

Set the callback to be called when a dont "NAOVTS" command is received at the instance level.

Source
on_dont_naws

Set the callback to be called when a dont "NAWS" command is received at the instance level.

Source
on_dont_newenviron

Set the callback to be called when a dont "NEWENVIRON" command is received at the instance level.

Source
on_dont_oldenviron

Set the callback to be called when a dont "OLDENVIRON" command is received at the instance level.

Source
on_dont_outmrk

Set the callback to be called when a dont "OUTMRK" command is received at the instance level.

Source
on_dont_rcp

Set the callback to be called when a dont "RCP" command is received at the instance level.

Source
on_dont_rcte

Set the callback to be called when a dont "RCTE" command is received at the instance level.

Source
on_dont_regime3270

Set the callback to be called when a dont "REGIME3270" command is received at the instance level.

Source
on_dont_send_url

Set the callback to be called when a dont "SEND_URL" command is received at the instance level.

Source
on_dont_sga

Set the callback to be called when a dont "SGA" command is received at the instance level.

Source
on_dont_sndloc

Set the callback to be called when a dont "SNDLOC" command is received at the instance level.

Source
on_dont_start_tls

Set the callback to be called when a dont "START_TLS" command is received at the instance level.

Source
on_dont_status

Set the callback to be called when a dont "STATUS" command is received at the instance level.

Source
on_dont_supdup

Set the callback to be called when a dont "SUPDUP" command is received at the instance level.

Source
on_dont_supdupoutput

Set the callback to be called when a dont "SUPDUPOUTPUT" command is received at the instance level.

Source
on_dont_suppress_local_echo

Set the callback to be called when a dont "SUPPRESS_LOCAL_ECHO" command is received at the instance level.

Source
on_dont_tm

Set the callback to be called when a dont "TM" command is received at the instance level.

Source
on_dont_tspeed

Set the callback to be called when a dont "TSPEED" command is received at the instance level.

Source
on_dont_ttyloc

Set the callback to be called when a dont "TTYLOC" command is received at the instance level.

Source
on_dont_ttype

Set the callback to be called when a dont "TTYPE" command is received at the instance level.

Source
on_dont_tuid

Set the callback to be called when a dont "TUID" command is received at the instance level.

Source
on_dont_x3pad

Set the callback to be called when a dont "X3PAD" command is received at the instance level.

Source
on_dont_xdisploc

Set the callback to be called when a dont "XDISPLOC" command is received at the instance level.

Source
on_receive_data
Source
on_subnegotiation_authentication

Set the callback to be called when a subnegotiation for the "AUTHENTICATION" option is received at the instance level.

Source
on_subnegotiation_comport

Set the callback to be called when a subnegotiation for the "COMPORT" option is received at the instance level.

Source
on_subnegotiation_encrypt

Set the callback to be called when a subnegotiation for the "ENCRYPT" option is received at the instance level.

Source
on_subnegotiation_extascii

Set the callback to be called when a subnegotiation for the "EXTASCII" option is received at the instance level.

Source
on_subnegotiation_lflow

Set the callback to be called when a subnegotiation for the "LFLOW" option is received at the instance level.

Source
on_subnegotiation_linemode

Set the callback to be called when a subnegotiation for the "LINEMODE" option is received at the instance level.

Source
on_subnegotiation_naws

Set the callback to be called when a subnegotiation for the "NAWS" option is received at the instance level.

Source
on_subnegotiation_newenviron

Set the callback to be called when a subnegotiation for the "NEWENVIRON" option is received at the instance level.

Source
on_subnegotiation_tspeed

Set the callback to be called when a subnegotiation for the "TSPEED" option is received at the instance level.

Source
on_subnegotiation_ttype

Set the callback to be called when a subnegotiation for the "TTYPE" option is received at the instance level.

Source
on_subnegotiation_xdisploc

Set the callback to be called when a subnegotiation for the "XDISPLOC" option is received at the instance level.

Source
on_unknown_command
Source
on_will_authentication

Set the callback to be called when a will "AUTHENTICATION" command is received at the instance level.

Source
on_will_binary

Set the callback to be called when a will "BINARY" command is received at the instance level.

Source
on_will_bm

Set the callback to be called when a will "BM" command is received at the instance level.

Source
on_will_comport

Set the callback to be called when a will "COMPORT" command is received at the instance level.

Source
on_will_det

Set the callback to be called when a will "DET" command is received at the instance level.

Source
on_will_echo

Set the callback to be called when a will "ECHO" command is received at the instance level.

Source
on_will_encrypt

Set the callback to be called when a will "ENCRYPT" command is received at the instance level.

Source
on_will_eor

Set the callback to be called when a will "EOR" command is received at the instance level.

Source
on_will_exopl

Set the callback to be called when a will "EXOPL" command is received at the instance level.

Source
on_will_extascii

Set the callback to be called when a will "EXTASCII" command is received at the instance level.

Source
on_will_forward_x

Set the callback to be called when a will "FORWARD_X" command is received at the instance level.

Source
on_will_gmcp

Set the callback to be called when a will "GMCP" command is received at the instance level.

Source
on_will_lflow

Set the callback to be called when a will "LFLOW" command is received at the instance level.

Source
on_will_linemode

Set the callback to be called when a will "LINEMODE" command is received at the instance level.

Source
on_will_logout

Set the callback to be called when a will "LOGOUT" command is received at the instance level.

Source
on_will_mccp2

Set the callback to be called when a will "MCCP2" command is received at the instance level.

Source
on_will_mccp3

Set the callback to be called when a will "MCCP3" command is received at the instance level.

Source
on_will_msdp

Set the callback to be called when a will "MSDP" command is received at the instance level.

Source
on_will_msp

Set the callback to be called when a will "MSP" command is received at the instance level.

Source
on_will_mssp

Set the callback to be called when a will "MSSP" command is received at the instance level.

Source
on_will_mxp

Set the callback to be called when a will "MXP" command is received at the instance level.

Source
on_will_nams

Set the callback to be called when a will "NAMS" command is received at the instance level.

Source
on_will_naocrd

Set the callback to be called when a will "NAOCRD" command is received at the instance level.

Source
on_will_naoffd

Set the callback to be called when a will "NAOFFD" command is received at the instance level.

Source
on_will_naohtd

Set the callback to be called when a will "NAOHTD" command is received at the instance level.

Source
on_will_naohts

Set the callback to be called when a will "NAOHTS" command is received at the instance level.

Source
on_will_naol

Set the callback to be called when a will "NAOL" command is received at the instance level.

Source
on_will_naolfd

Set the callback to be called when a will "NAOLFD" command is received at the instance level.

Source
on_will_naop

Set the callback to be called when a will "NAOP" command is received at the instance level.

Source
on_will_naovtd

Set the callback to be called when a will "NAOVTD" command is received at the instance level.

Source
on_will_naovts

Set the callback to be called when a will "NAOVTS" command is received at the instance level.

Source
on_will_naws

Set the callback to be called when a will "NAWS" command is received at the instance level.

Source
on_will_newenviron

Set the callback to be called when a will "NEWENVIRON" command is received at the instance level.

Source
on_will_oldenviron

Set the callback to be called when a will "OLDENVIRON" command is received at the instance level.

Source
on_will_outmrk

Set the callback to be called when a will "OUTMRK" command is received at the instance level.

Source
on_will_rcp

Set the callback to be called when a will "RCP" command is received at the instance level.

Source
on_will_rcte

Set the callback to be called when a will "RCTE" command is received at the instance level.

Source
on_will_regime3270

Set the callback to be called when a will "REGIME3270" command is received at the instance level.

Source
on_will_send_url

Set the callback to be called when a will "SEND_URL" command is received at the instance level.

Source
on_will_sga

Set the callback to be called when a will "SGA" command is received at the instance level.

Source
on_will_sndloc

Set the callback to be called when a will "SNDLOC" command is received at the instance level.

Source
on_will_start_tls

Set the callback to be called when a will "START_TLS" command is received at the instance level.

Source
on_will_status

Set the callback to be called when a will "STATUS" command is received at the instance level.

Source
on_will_supdup

Set the callback to be called when a will "SUPDUP" command is received at the instance level.

Source
on_will_supdupoutput

Set the callback to be called when a will "SUPDUPOUTPUT" command is received at the instance level.

Source
on_will_suppress_local_echo

Set the callback to be called when a will "SUPPRESS_LOCAL_ECHO" command is received at the instance level.

Source
on_will_tm

Set the callback to be called when a will "TM" command is received at the instance level.

Source
on_will_tspeed

Set the callback to be called when a will "TSPEED" command is received at the instance level.

Source
on_will_ttyloc

Set the callback to be called when a will "TTYLOC" command is received at the instance level.

Source
on_will_ttype

Set the callback to be called when a will "TTYPE" command is received at the instance level.

Source
on_will_tuid

Set the callback to be called when a will "TUID" command is received at the instance level.

Source
on_will_x3pad

Set the callback to be called when a will "X3PAD" command is received at the instance level.

Source
on_will_xdisploc

Set the callback to be called when a will "XDISPLOC" command is received at the instance level.

Source
on_wont_authentication

Set the callback to be called when a wont "AUTHENTICATION" command is received at the instance level.

Source
on_wont_binary

Set the callback to be called when a wont "BINARY" command is received at the instance level.

Source
on_wont_bm

Set the callback to be called when a wont "BM" command is received at the instance level.

Source
on_wont_comport

Set the callback to be called when a wont "COMPORT" command is received at the instance level.

Source
on_wont_det

Set the callback to be called when a wont "DET" command is received at the instance level.

Source
on_wont_echo

Set the callback to be called when a wont "ECHO" command is received at the instance level.

Source
on_wont_encrypt

Set the callback to be called when a wont "ENCRYPT" command is received at the instance level.

Source
on_wont_eor

Set the callback to be called when a wont "EOR" command is received at the instance level.

Source
on_wont_exopl

Set the callback to be called when a wont "EXOPL" command is received at the instance level.

Source
on_wont_extascii

Set the callback to be called when a wont "EXTASCII" command is received at the instance level.

Source
on_wont_forward_x

Set the callback to be called when a wont "FORWARD_X" command is received at the instance level.

Source
on_wont_gmcp

Set the callback to be called when a wont "GMCP" command is received at the instance level.

Source
on_wont_lflow

Set the callback to be called when a wont "LFLOW" command is received at the instance level.

Source
on_wont_linemode

Set the callback to be called when a wont "LINEMODE" command is received at the instance level.

Source
on_wont_logout

Set the callback to be called when a wont "LOGOUT" command is received at the instance level.

Source
on_wont_mccp2

Set the callback to be called when a wont "MCCP2" command is received at the instance level.

Source
on_wont_mccp3

Set the callback to be called when a wont "MCCP3" command is received at the instance level.

Source
on_wont_msdp

Set the callback to be called when a wont "MSDP" command is received at the instance level.

Source
on_wont_msp

Set the callback to be called when a wont "MSP" command is received at the instance level.

Source
on_wont_mssp

Set the callback to be called when a wont "MSSP" command is received at the instance level.

Source
on_wont_mxp

Set the callback to be called when a wont "MXP" command is received at the instance level.

Source
on_wont_nams

Set the callback to be called when a wont "NAMS" command is received at the instance level.

Source
on_wont_naocrd

Set the callback to be called when a wont "NAOCRD" command is received at the instance level.

Source
on_wont_naoffd

Set the callback to be called when a wont "NAOFFD" command is received at the instance level.

Source
on_wont_naohtd

Set the callback to be called when a wont "NAOHTD" command is received at the instance level.

Source
on_wont_naohts

Set the callback to be called when a wont "NAOHTS" command is received at the instance level.

Source
on_wont_naol

Set the callback to be called when a wont "NAOL" command is received at the instance level.

Source
on_wont_naolfd

Set the callback to be called when a wont "NAOLFD" command is received at the instance level.

Source
on_wont_naop

Set the callback to be called when a wont "NAOP" command is received at the instance level.

Source
on_wont_naovtd

Set the callback to be called when a wont "NAOVTD" command is received at the instance level.

Source
on_wont_naovts

Set the callback to be called when a wont "NAOVTS" command is received at the instance level.

Source
on_wont_naws

Set the callback to be called when a wont "NAWS" command is received at the instance level.

Source
on_wont_newenviron

Set the callback to be called when a wont "NEWENVIRON" command is received at the instance level.

Source
on_wont_oldenviron

Set the callback to be called when a wont "OLDENVIRON" command is received at the instance level.

Source
on_wont_outmrk

Set the callback to be called when a wont "OUTMRK" command is received at the instance level.

Source
on_wont_rcp

Set the callback to be called when a wont "RCP" command is received at the instance level.

Source
on_wont_rcte

Set the callback to be called when a wont "RCTE" command is received at the instance level.

Source
on_wont_regime3270

Set the callback to be called when a wont "REGIME3270" command is received at the instance level.

Source
on_wont_send_url

Set the callback to be called when a wont "SEND_URL" command is received at the instance level.

Source
on_wont_sga

Set the callback to be called when a wont "SGA" command is received at the instance level.

Source
on_wont_sndloc

Set the callback to be called when a wont "SNDLOC" command is received at the instance level.

Source
on_wont_start_tls

Set the callback to be called when a wont "START_TLS" command is received at the instance level.

Source
on_wont_status

Set the callback to be called when a wont "STATUS" command is received at the instance level.

Source
on_wont_supdup

Set the callback to be called when a wont "SUPDUP" command is received at the instance level.

Source
on_wont_supdupoutput

Set the callback to be called when a wont "SUPDUPOUTPUT" command is received at the instance level.

Source
on_wont_suppress_local_echo

Set the callback to be called when a wont "SUPPRESS_LOCAL_ECHO" command is received at the instance level.

Source
on_wont_tm

Set the callback to be called when a wont "TM" command is received at the instance level.

Source
on_wont_tspeed

Set the callback to be called when a wont "TSPEED" command is received at the instance level.

Source
on_wont_ttyloc

Set the callback to be called when a wont "TTYLOC" command is received at the instance level.

Source
on_wont_ttype

Set the callback to be called when a wont "TTYPE" command is received at the instance level.

Source
on_wont_tuid

Set the callback to be called when a wont "TUID" command is received at the instance level.

Source
on_wont_x3pad

Set the callback to be called when a wont "X3PAD" command is received at the instance level.

Source
on_wont_xdisploc

Set the callback to be called when a wont "XDISPLOC" command is received at the instance level.

Source
parse(data : Array(UInt8))

Appends the data to the end of the buffer and then calls to process the buffer.

Source
parse(data : Slice(UInt8))

Converts the data to an array of UInt8 and calls #parse.

Source