Home | History | Annotate | Download | only in python2.7

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
42 __all__ = ["Telnet"]
47 # Telnet protocol defaults
50 # Telnet protocol characters (don't change)
71 # Telnet protocol options code (don't change)
72 # These ones all come from arpa/telnet.h
114 # http://www.iana.org/assignments/telnet-options
120 RSP = chr(43) # Telnet Remote Serial Port
122 SUPPRESS_LOCAL_ECHO = chr(45) # Telnet Suppress Local Echo
123 TLS = chr(46) # Telnet Start TLS
133 class Telnet:
135 """Telnet interface class.
137 An instance of this class represents a connection to a telnet
180 Each time a telnet option is read on the input flow, this callback
182 callback(telnet socket, command, option)
217 defaults to the standard telnet port (23).
241 print 'Telnet(%s,%s):' % (self.host, self.port),
452 raise EOFError, 'telnet connection closed'
468 """Provide a callback function called after each receipt of a telnet option."""
583 """Interaction function, emulates a very dumb telnet client."""
780 tn = Telnet()