Class: Telnet (Net)

Overview
Module Structure
Class Hierarchy
Constants
Telnet::IAC
Telnet::DONT
Telnet::DO
Telnet::WONT
Telnet::WILL
Telnet::SB
Telnet::GA
Telnet::EL
Telnet::EC
Telnet::AYT
Telnet::AO
Telnet::IP
Telnet::BREAK
Telnet::DM
Telnet::NOP
Telnet::SE
Telnet::EOR
Telnet::ABORT
Telnet::SUSP
Telnet::EOF
Telnet::SYNCH
Telnet::OPT_BINARY
Telnet::OPT_ECHO
Telnet::OPT_RCP
Telnet::OPT_SGA
Telnet::OPT_NAMS
Telnet::OPT_STATUS
Telnet::OPT_TM
Telnet::OPT_RCTE
Telnet::OPT_NAOL
Telnet::OPT_NAOP
Telnet::OPT_NAOCRD
Telnet::OPT_NAOHTS
Telnet::OPT_NAOHTD
Telnet::OPT_NAOFFD
Telnet::OPT_NAOVTS
Telnet::OPT_NAOVTD
Telnet::OPT_NAOLFD
Telnet::OPT_XASCII
Telnet::OPT_LOGOUT
Telnet::OPT_BM
Telnet::OPT_DET
Telnet::OPT_SUPDUP
Telnet::OPT_SUPDUPOUTPUT
Telnet::OPT_SNDLOC
Telnet::OPT_TTYPE
Telnet::OPT_EOR
Telnet::OPT_TUID
Telnet::OPT_OUTMRK
Telnet::OPT_TTYLOC
Telnet::OPT_3270REGIME
Telnet::OPT_X3PAD
Telnet::OPT_NAWS
Telnet::OPT_TSPEED
Telnet::OPT_LFLOW
Telnet::OPT_LINEMODE
Telnet::OPT_XDISPLOC
Telnet::OPT_OLD_ENVIRON
Telnet::OPT_AUTHENTICATION
Telnet::OPT_ENCRYPT
Telnet::OPT_NEW_ENVIRON
Telnet::OPT_EXOPL
Telnet::NULL
Telnet::CR
Telnet::LF
Telnet::EOL
Telnet::REVISION
Telnet::OPT_STARTTLS
Telnet::TLS_FOLLOWS
Instance Aliases
Telnet#preprocess_orig
Telnet#waitfor_org
Instance Attributes
Telnet#sock [R]
Telnet#ssl [R]
Instance Methods
Telnet#initialize / 1
Telnet#telnetmode / 1
Telnet#telnetmode= / 1
Telnet#binmode / 1
Telnet#binmode= / 1
Telnet#preprocess (1/2) / 1
Telnet#waitfor (1/2) / 1
Telnet#write / 1
Telnet#print / 1
Telnet#puts / 1
Telnet#cmd / 1
Telnet#login / 2
Telnet#ssl?
Telnet#preprocess (2/E) / 1
Telnet#waitfor (2/E) / 1
Telnet#detect_sub_negotiation / 2
is a submodule of
module: Net   
inherits from
  SimpleDelegator   
has properties
constant: IAC   
constant: DONT   
constant: DO   
constant: WONT   
constant: WILL   
constant: SB   
constant: GA   
constant: EL   
constant: EC   
constant: AYT   
constant: AO   
constant: IP   
constant: BREAK   
constant: DM   
constant: NOP   
constant: SE   
constant: EOR   
constant: ABORT   
constant: SUSP   
constant: EOF   
constant: SYNCH   
constant: OPT_BINARY   
constant: OPT_ECHO   
constant: OPT_RCP   
constant: OPT_SGA   
constant: OPT_NAMS   
constant: OPT_STATUS   
constant: OPT_TM   
constant: OPT_RCTE   
constant: OPT_NAOL   
constant: OPT_NAOP   
constant: OPT_NAOCRD   
constant: OPT_NAOHTS   
constant: OPT_NAOHTD   
constant: OPT_NAOFFD   
constant: OPT_NAOVTS   
constant: OPT_NAOVTD   
constant: OPT_NAOLFD   
constant: OPT_XASCII   
constant: OPT_LOGOUT   
constant: OPT_BM   
constant: OPT_DET   
constant: OPT_SUPDUP   
constant: OPT_SUPDUPOUTPUT   
constant: OPT_SNDLOC   
constant: OPT_TTYPE   
constant: OPT_EOR   
constant: OPT_TUID   
constant: OPT_OUTMRK   
constant: OPT_TTYLOC   
constant: OPT_3270REGIME   
constant: OPT_X3PAD   
constant: OPT_NAWS   
constant: OPT_TSPEED   
constant: OPT_LFLOW   
constant: OPT_LINEMODE   
constant: OPT_XDISPLOC   
constant: OPT_OLD_ENVIRON   
constant: OPT_AUTHENTICATION   
constant: OPT_ENCRYPT   
constant: OPT_NEW_ENVIRON   
constant: OPT_EXOPL   
constant: NULL   
constant: CR   
constant: LF   
constant: EOL   
constant: REVISION   
method: initialize / 1   
attribute: sock [R]   
method: telnetmode / 1   
method: telnetmode= / 1   
method: binmode / 1   
method: binmode= / 1   
method: preprocess (1/2) / 1   
method: waitfor (1/2) / 1   
method: write / 1   
method: print / 1   
method: puts / 1   
method: cmd / 1   
method: login / 2   
attribute: ssl [R]   
constant: OPT_STARTTLS   
constant: TLS_FOLLOWS   
alias: preprocess_orig preprocess   
method: ssl?   
method: preprocess (2/E) / 1   
alias: waitfor_org waitfor   
method: waitfor (2/E) / 1   
method: detect_sub_negotiation / 2   
is defined at
#96 in net/telnet.rb  
#60 in net/telnets.rb  

Overview

Module Structure

  module: <Toplevel Module>
  class: SimpleDelegator
  module: Net
class: Telnet     

Class Hierarchy

Object ( Builtin-Module )
SimpleDelegator
Telnet ( Net )
has properties
constant: IAC   
constant: DONT   
constant: DO   
constant: WONT   
constant: WILL   
constant: SB   
constant: GA   
constant: EL   
constant: EC   
constant: AYT   
constant: AO   
constant: IP   
constant: BREAK   
constant: DM   
constant: NOP   
constant: SE   
constant: EOR   
constant: ABORT   
constant: SUSP   
constant: EOF   
constant: SYNCH   
constant: OPT_BINARY   
constant: OPT_ECHO   
constant: OPT_RCP   
constant: OPT_SGA   
constant: OPT_NAMS   
constant: OPT_STATUS   
constant: OPT_TM   
constant: OPT_RCTE   
constant: OPT_NAOL   
constant: OPT_NAOP   
constant: OPT_NAOCRD   
constant: OPT_NAOHTS   
constant: OPT_NAOHTD   
constant: OPT_NAOFFD   
constant: OPT_NAOVTS   
constant: OPT_NAOVTD   
constant: OPT_NAOLFD   
constant: OPT_XASCII   
constant: OPT_LOGOUT   
constant: OPT_BM   
constant: OPT_DET   
constant: OPT_SUPDUP   
constant: OPT_SUPDUPOUTPUT   
constant: OPT_SNDLOC   
constant: OPT_TTYPE   
constant: OPT_EOR   
constant: OPT_TUID   
constant: OPT_OUTMRK   
constant: OPT_TTYLOC   
constant: OPT_3270REGIME   
constant: OPT_X3PAD   
constant: OPT_NAWS   
constant: OPT_TSPEED   
constant: OPT_LFLOW   
constant: OPT_LINEMODE   
constant: OPT_XDISPLOC   
constant: OPT_OLD_ENVIRON   
constant: OPT_AUTHENTICATION   
constant: OPT_ENCRYPT   
constant: OPT_NEW_ENVIRON   
constant: OPT_EXOPL   
constant: NULL   
constant: CR   
constant: LF   
constant: EOL   
constant: REVISION   
method: initialize / 1   
attribute: sock [R]   
method: telnetmode / 1   
method: telnetmode= / 1   
method: binmode / 1   
method: binmode= / 1   
method: preprocess (1/2) / 1   
method: waitfor (1/2) / 1   
method: write / 1   
method: print / 1   
method: puts / 1   
method: cmd / 1   
method: login / 2   
attribute: ssl [R]   
constant: OPT_STARTTLS   
constant: TLS_FOLLOWS   
alias: preprocess_orig preprocess   
method: ssl?   
method: preprocess (2/E) / 1   
alias: waitfor_org waitfor   
method: waitfor (2/E) / 1   
method: detect_sub_negotiation / 2   

Constants

Telnet::IAC

#99 in net/telnet.rb

IAC = 255.chr # "\377" # "\xff" # interpret as command   

Telnet::DONT

#100 in net/telnet.rb

DONT = 254.chr # "\376" # "\xfe" # you are not to use option   

Telnet::DO

#101 in net/telnet.rb

DO = 253.chr # "\375" # "\xfd" # please, you use option   

Telnet::WONT

#102 in net/telnet.rb

WONT = 252.chr # "\374" # "\xfc" # I won't use option   

Telnet::WILL

#103 in net/telnet.rb

WILL = 251.chr # "\373" # "\xfb" # I will use option   

Telnet::SB

#104 in net/telnet.rb

SB = 250.chr # "\372" # "\xfa" # interpret as subnegotiation   

Telnet::GA

#105 in net/telnet.rb

GA = 249.chr # "\371" # "\xf9" # you may reverse the line   

Telnet::EL

#106 in net/telnet.rb

EL = 248.chr # "\370" # "\xf8" # erase the current line   

Telnet::EC

#107 in net/telnet.rb

EC = 247.chr # "\367" # "\xf7" # erase the current character   

Telnet::AYT

#108 in net/telnet.rb

AYT = 246.chr # "\366" # "\xf6" # are you there   

Telnet::AO

#109 in net/telnet.rb

AO = 245.chr # "\365" # "\xf5" # abort output--but let prog finish   

Telnet::IP

#110 in net/telnet.rb

IP = 244.chr # "\364" # "\xf4" # interrupt process--permanently   

Telnet::BREAK

#111 in net/telnet.rb

BREAK = 243.chr # "\363" # "\xf3" # break   

Telnet::DM

#112 in net/telnet.rb

DM = 242.chr # "\362" # "\xf2" # data mark--for connect. cleaning   

Telnet::NOP

#113 in net/telnet.rb

NOP = 241.chr # "\361" # "\xf1" # nop   

Telnet::SE

#114 in net/telnet.rb

SE = 240.chr # "\360" # "\xf0" # end sub negotiation   

Telnet::EOR

#115 in net/telnet.rb

EOR = 239.chr # "\357" # "\xef" # end of record (transparent mode)   

Telnet::ABORT

#116 in net/telnet.rb

ABORT = 238.chr # "\356" # "\xee" # Abort process   

Telnet::SUSP

#117 in net/telnet.rb

SUSP = 237.chr # "\355" # "\xed" # Suspend process   

Telnet::EOF

#118 in net/telnet.rb

EOF = 236.chr # "\354" # "\xec" # End of file   

Telnet::SYNCH

#119 in net/telnet.rb

SYNCH = 242.chr # "\362" # "\xf2" # for telfunc calls   

Telnet::OPT_BINARY

#121 in net/telnet.rb

OPT_BINARY = 0.chr # "\000" # "\x00" # Binary Transmission   

Telnet::OPT_ECHO

#122 in net/telnet.rb

OPT_ECHO = 1.chr # "\001" # "\x01" # Echo   

Telnet::OPT_RCP

#123 in net/telnet.rb

OPT_RCP = 2.chr # "\002" # "\x02" # Reconnection   

Telnet::OPT_SGA

#124 in net/telnet.rb

OPT_SGA = 3.chr # "\003" # "\x03" # Suppress Go Ahead   

Telnet::OPT_NAMS

#125 in net/telnet.rb

OPT_NAMS = 4.chr # "\004" # "\x04" # Approx Message Size Negotiation   

Telnet::OPT_STATUS

#126 in net/telnet.rb

OPT_STATUS = 5.chr # "\005" # "\x05" # Status   

Telnet::OPT_TM

#127 in net/telnet.rb

OPT_TM = 6.chr # "\006" # "\x06" # Timing Mark   

Telnet::OPT_RCTE

#128 in net/telnet.rb

OPT_RCTE = 7.chr # "\a" # "\x07" # Remote Controlled Trans and Echo   

Telnet::OPT_NAOL

#129 in net/telnet.rb

OPT_NAOL = 8.chr # "\010" # "\x08" # Output Line Width   

Telnet::OPT_NAOP

#130 in net/telnet.rb

OPT_NAOP = 9.chr # "\t" # "\x09" # Output Page Size   

Telnet::OPT_NAOCRD

#131 in net/telnet.rb

OPT_NAOCRD = 10.chr # "\n" # "\x0a" # Output Carriage-Return Disposition   

Telnet::OPT_NAOHTS

#132 in net/telnet.rb

OPT_NAOHTS = 11.chr # "\v" # "\x0b" # Output Horizontal Tab Stops   

Telnet::OPT_NAOHTD

#133 in net/telnet.rb

OPT_NAOHTD = 12.chr # "\f" # "\x0c" # Output Horizontal Tab Disposition   

Telnet::OPT_NAOFFD

#134 in net/telnet.rb

OPT_NAOFFD = 13.chr # "\r" # "\x0d" # Output Formfeed Disposition   

Telnet::OPT_NAOVTS

#135 in net/telnet.rb

OPT_NAOVTS = 14.chr # "\016" # "\x0e" # Output Vertical Tabstops   

Telnet::OPT_NAOVTD

#136 in net/telnet.rb

OPT_NAOVTD = 15.chr # "\017" # "\x0f" # Output Vertical Tab Disposition   

Telnet::OPT_NAOLFD

#137 in net/telnet.rb

OPT_NAOLFD = 16.chr # "\020" # "\x10" # Output Linefeed Disposition   

Telnet::OPT_XASCII

#138 in net/telnet.rb

OPT_XASCII = 17.chr # "\021" # "\x11" # Extended ASCII   

Telnet::OPT_LOGOUT

#139 in net/telnet.rb

OPT_LOGOUT = 18.chr # "\022" # "\x12" # Logout   

Telnet::OPT_BM

#140 in net/telnet.rb

OPT_BM = 19.chr # "\023" # "\x13" # Byte Macro   

Telnet::OPT_DET

#141 in net/telnet.rb

OPT_DET = 20.chr # "\024" # "\x14" # Data Entry Terminal   

Telnet::OPT_SUPDUP

#142 in net/telnet.rb

OPT_SUPDUP = 21.chr # "\025" # "\x15" # SUPDUP   

Telnet::OPT_SUPDUPOUTPUT

#143 in net/telnet.rb

OPT_SUPDUPOUTPUT = 22.chr # "\026" # "\x16" # SUPDUP Output   

Telnet::OPT_SNDLOC

#144 in net/telnet.rb

OPT_SNDLOC = 23.chr # "\027" # "\x17" # Send Location   

Telnet::OPT_TTYPE

#145 in net/telnet.rb

OPT_TTYPE = 24.chr # "\030" # "\x18" # Terminal Type   

Telnet::OPT_EOR

#146 in net/telnet.rb

OPT_EOR = 25.chr # "\031" # "\x19" # End of Record   

Telnet::OPT_TUID

#147 in net/telnet.rb

OPT_TUID = 26.chr # "\032" # "\x1a" # TACACS User Identification   

Telnet::OPT_OUTMRK

#148 in net/telnet.rb

OPT_OUTMRK = 27.chr # "\e" # "\x1b" # Output Marking   

Telnet::OPT_TTYLOC

#149 in net/telnet.rb

OPT_TTYLOC = 28.chr # "\034" # "\x1c" # Terminal Location Number   

Telnet::OPT_3270REGIME

#150 in net/telnet.rb

OPT_3270REGIME = 29.chr # "\035" # "\x1d" # Telnet 3270 Regime   

Telnet::OPT_X3PAD

#151 in net/telnet.rb

OPT_X3PAD = 30.chr # "\036" # "\x1e" # X.3 PAD   

Telnet::OPT_NAWS

#152 in net/telnet.rb

OPT_NAWS = 31.chr # "\037" # "\x1f" # Negotiate About Window Size   

Telnet::OPT_TSPEED

#153 in net/telnet.rb

OPT_TSPEED = 32.chr # " " # "\x20" # Terminal Speed   

Telnet::OPT_LFLOW

#154 in net/telnet.rb

OPT_LFLOW = 33.chr # "!" # "\x21" # Remote Flow Control   

Telnet::OPT_LINEMODE

#155 in net/telnet.rb

OPT_LINEMODE = 34.chr # "\"" # "\x22" # Linemode   

Telnet::OPT_XDISPLOC

#156 in net/telnet.rb

OPT_XDISPLOC = 35.chr # "#" # "\x23" # X Display Location   

Telnet::OPT_OLD_ENVIRON

#157 in net/telnet.rb

OPT_OLD_ENVIRON = 36.chr # "$" # "\x24" # Environment Option   

Telnet::OPT_AUTHENTICATION

#158 in net/telnet.rb

OPT_AUTHENTICATION = 37.chr # "%" # "\x25" # Authentication Option   

Telnet::OPT_ENCRYPT

#159 in net/telnet.rb

OPT_ENCRYPT = 38.chr # "&" # "\x26" # Encryption Option   

Telnet::OPT_NEW_ENVIRON

#160 in net/telnet.rb

OPT_NEW_ENVIRON = 39.chr # "'" # "\x27" # New Environment Option   

Telnet::OPT_EXOPL

#161 in net/telnet.rb

OPT_EXOPL = 255.chr # "\377" # "\xff" # Extended-Options-List   

Telnet::NULL

#163 in net/telnet.rb

NULL = "\000"   

Telnet::CR

#164 in net/telnet.rb

CR = "\015"   

Telnet::LF

#165 in net/telnet.rb

LF = "\012"   

Telnet::EOL

#166 in net/telnet.rb

EOL = CR + LF   

Telnet::REVISION

#167 in net/telnet.rb

REVISION = '$Id: telnet.rb 16458 2008-05-18 15:02:36Z knu $'   

Telnet::OPT_STARTTLS

#63 in net/telnets.rb

OPT_STARTTLS = 46.chr # "\056" # "\x2e" # Start TLS   

Telnet::TLS_FOLLOWS

#64 in net/telnets.rb

TLS_FOLLOWS = 1.chr # "\001" # "\x01" # FOLLOWS (for STARTTLS)   

Instance Aliases

Telnet#preprocess_orig

#66 in net/telnets.rb

preprocess_orig preprocess   

Telnet#waitfor_org

#149 in net/telnets.rb

waitfor_org waitfor   

Instance Attributes

Telnet#sock [R]

#377 in net/telnet.rb

Telnet#ssl [R]

#61 in net/telnets.rb

Instance Methods

Telnet#initialize / 1

#275 in net/telnet.rb

initialize ( options )

Telnet#telnetmode / 1

#384 in net/telnet.rb

telnetmode ( mode = nil )

Telnet#telnetmode= / 1

#398 in net/telnet.rb

telnetmode= ( mode )

Telnet#binmode / 1

#408 in net/telnet.rb

binmode ( mode = nil )

Telnet#binmode= / 1

#420 in net/telnet.rb

binmode= ( mode )

Telnet#preprocess (1/2) / 1

#434 in net/telnet.rb

preprocess ( string )

Telnet#waitfor (1/2) / 1

#528 in net/telnet.rb

waitfor ( options )

Telnet#write / 1

#610 in net/telnet.rb

write ( string )

Telnet#print / 1

#625 in net/telnet.rb

print ( string )

Telnet#puts / 1

#647 in net/telnet.rb

puts ( string )

Telnet#cmd / 1

#678 in net/telnet.rb

cmd ( options )

Telnet#login / 2

#720 in net/telnet.rb

login ( options ,
  password = nil )

Telnet#ssl?

#68 in net/telnets.rb

ssl?

Telnet#preprocess (2/E) / 1

#70 in net/telnets.rb

preprocess ( string )

Telnet#waitfor (2/E) / 1

#151 in net/telnets.rb

waitfor ( options )

Telnet#detect_sub_negotiation / 2

#230 in net/telnets.rb

detect_sub_negotiation ( data ,
  pos )