Class TelnetFilter
In: lib/network/protocol/telnetfilter.rb
Parent: Filter
TelnetFilter
ASCIICodes
TelnetCodes
Filter
TopLevel

The TelnetFilter class implements the Telnet protocol.

This implements most of basic Telnet as per RFCs 854/855/1129/1143 and options in RFCs 857/858/1073/1091

Methods

desired?   echo   enabled?   filter_in   filter_out   init   init_subneg   new   send_naws  

Included Modules

ASCIICodes TelnetCodes

Public Class methods

Initialize state of filter

pstack
The ProtocolStack associated with this filter
server
An optional hash of desired initial options

Public Instance methods

Test to see which state we prefer this option to be in

opt
The Telnet option code

Handle server-side echo

ch
character string to echo

Test to see if option is enabled

opt
The Telnet option code
who
The side to check :us or :him

The filter_in method filters input data

str
The string to be processed
return
The filtered data

The filter_out method filters output data

str
The string to be processed
return
The filtered data

Negotiate starting wanted options

args
Optional initial options

Negotiate starting wanted options that imply subnegotation So far only terminal type

[Validate]