Home | History | Annotate | Download | only in Lib

Lines Matching refs:Telnet

1 r"""TELNET client class.

3 Based on RFC 854: TELNET Protocol Specification, by J. Postel and
8 >>> from telnetlib import Telnet
9 >>> tn = Telnet('www.python.org', 79) # connect to finger port
20 It is possible to pass a Telnet object to select.select() in order to
41 __all__ = ["Telnet"]
46 # Telnet protocol defaults
49 # Telnet protocol characters (don't change)
70 # Telnet protocol options code (don't change)
71 # These ones all come from arpa/telnet.h
113 # http://www.iana.org/assignments/telnet-options
119 RSP = chr(43) # Telnet Remote Serial Port
121 SUPPRESS_LOCAL_ECHO = chr(45) # Telnet Suppress Local Echo
122 TLS = chr(46) # Telnet Start TLS
132 class Telnet:
134 """Telnet interface class.
136 An instance of this class represents a connection to a telnet
179 Each time a telnet option is read on the input flow, this callback
181 callback(telnet socket, command, option)
215 defaults to the standard telnet port (23).
239 print 'Telnet(%s,%s):' % (self.host, self.port),
395 raise EOFError, 'telnet connection closed'
411 """Provide a callback function called after each receipt of a telnet option."""
526 """Interaction function, emulates a very dumb telnet client."""
650 tn = Telnet()