# 11.10 `telnetlib` -- Telnet client

The `telnetlib` module provides a `Telnet` class that implements the Telnet protocol. See RFC 854 for details about the protocol.

`Telnet` ([host[, port=0]])
  `Telnet` represents a connection to a telnet server. The instance is initially not connected; the `open()` method must be used to establish a connection. Alternatively, the host name and optional port number can be passed to the constructor, too.

  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 doc strings.

- 11.10.1 Telnet Objects