Telnet
Telnet is an old protocol, specified by RFC 854 (see http://www.ietf.org/rfc/rfc854.txt), and is normally used for interactive user sessions. The Python standard library supports this protocol in its module telnetlib
. Module telnetlib
supplies a class Telnet
to connect to a Telnet server.
Telnet |
Returns an instance Instance |
close |
Closes the connection. |
expect |
Reads data from the connection until it matches any of the regular expressions that are the items of list |
interact |
Enters interactive mode, connecting standard input and output to the two ... |
Get Python in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.