GNU Info

Info Node: (python2.1-lib.info)telnetlib

(python2.1-lib.info)telnetlib


Next: urlparse Prev: smtplib Up: Internet Protocols and Support
Enter node , (file) or (file)node

Telnet client
=============

Telnet client class.

This manual section was written by Skip Montanaro <skip@mojam.com>.
The `telnetlib' module provides a `Telnet' class that implements the
Telnet protocol.  See RFC 854 for details about the protocol.

`Telnet([host[, port]])'
     `Telnet' represents a connection to a telnet server. The instance
     is initially not connected by default; the `open()' method must be
     used to establish a connection.  Alternatively, the host name and
     optional port number can be passed to the constructor, to, in
     which case the connection to the server will be established before
     the constructor returns.

     Do not reopen an already connected instance.

     This class has many `read_*()' methods.  Note that some of them
     raise `EOFError' when the end of the connection is read, because
     they can return an empty string for other reasons.  See the
     individual descriptions below.

See also:
    *RFC854 Telnet Protocol Specification*
          Definition of the Telnet protocol.

Telnet Objects
Telnet Example

automatically generated by info2www version 1.2.2.9