telnetlib.Telnet.read_lazy()

Telnet.read_lazy() Process and return data already in the queues (lazy). Raise EOFError if connection closed and no data available. Return b'' if no cooked data available otherwise. Do not block unless in the midst of an IAC sequence.

telnetlib.Telnet.open()

Telnet.open(host, port=0[, timeout]) Connect to a host. The optional second argument is the port number, which defaults to the standard Telnet port (23). The optional timeout parameter specifies a timeout in seconds for blocking operations like the connection attempt (if not specified, the global default timeout setting will be used). Do not try to reopen an already connected instance.

telnetlib.Telnet.msg()

Telnet.msg(msg, *args) Print a debug message when the debug level is > 0. If extra arguments are present, they are substituted in the message using the standard string formatting operator.

telnetlib.Telnet.close()

Telnet.close() Close the connection.

telnetlib.Telnet.mt_interact()

Telnet.mt_interact() Multithreaded version of interact().

telnetlib.Telnet.interact()

Telnet.interact() Interaction function, emulates a very dumb Telnet client.

telnetlib.Telnet.expect()

Telnet.expect(list, timeout=None) Read until one from a list of a regular expressions matches. The first argument is a list of regular expressions, either compiled (regex objects) or uncompiled (byte strings). The optional second argument is a timeout, in seconds; the default is to block indefinitely. Return a tuple of three items: the index in the list of the first regular expression that matches; the match object returned; and the bytes read up till and including the match. If end of file

telnetlib.Telnet.get_socket()

Telnet.get_socket() Return the socket object used internally.

telnetlib.Telnet.fileno()

Telnet.fileno() Return the file descriptor of the socket object used internally.

tarfile.TarInfo.uid

TarInfo.uid User ID of the user who originally stored this member.