The telnetlib module provides a Telnet class that implements the Telnet protocol. See RFC 854 for details about the protocol.
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.