byteblowerll.byteblower.TelnetClient

class byteblowerll.byteblower.TelnetClient(*args, **kwargs)

A Telnet client application that allows communication with an external Telnet server.

The Telnet protocol allows for bidirectional interactive communication between a Telnet client (i.e. this application) on a ByteBlower port and an external Telnet server.

The Telnet protocol can be used to log in on other machines using a virtual terminal. By sending Telnet commands using Send(), waiting for a small amount of time and reading the response using Receive(), a complete interactive session may be constructed.

The protocol can also be used to debug other network protocols. For example, contacting an HTTP server (on port 80) using a Telnet client and sending a valid HTTP request towards it, should correctly return the HTTP response data.

New in version 2.2.0.

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

Close() Closes the Telnet session with the server and stops the Telnet client.
ConnectionStateGet() Returns the current TCP connection state.
DescriptionGet(*args) Gets a textual description for the current object
LocalPortGet() Returns the (local) TCP port used by this client.
LocalPortSet(inLocalPort) Configures the (local) TCP port used by this client.
Open() Starts the Telnet client and opens the session with the Telnet server.
ParentGet() Returns the parent object.
PortGet()
Receive() Reads data received over the Telnet session from the network and returns it.
Refresh() Retrieves the latest data from the server for this object.
RemoteAddressGet() Returns the IP address of the Telnet server to which this client connects.
RemoteAddressSet(inAddress) Sets the IP address of the Telnet server to which this client connects.
RemotePortGet() Returns the (remote) TCP port on the Telnet server to which this client connects
RemotePortSet(inRemotePort) Configures (remote) TCP port on the Telnet server to which this client connects.
Send(inData) Sends the provided to the Telnet server over the network..
__init__(*args, **kwargs) Initialize self.

Attributes

thisown The membership flag