class documentation

class StatefulTelnetProtocol(basic.LineReceiver, TelnetProtocol): (source)

Known subclasses: twisted.conch.telnet.AuthenticatingTelnetProtocol

View In Hierarchy

Undocumented

Method connection​Lost Called when the connection is shut down.
Method line​Received Override this for when each line is received.
Method telnet_​Discard Undocumented
Class Variable delimiter Undocumented
Instance Variable state Undocumented

Inherited from LineReceiver:

Method clear​Line​Buffer Clear buffered data.
Method data​Received Protocol.dataReceived. Translates bytes into lines, and calls lineReceived (or rawDataReceived, depending on mode.)
Method line​Length​Exceeded Called when the maximum line length has been reached. Override if it needs to be dealt with in some special way.
Method raw​Data​Received Override this for when raw data is received.
Method send​Line Sends a line to the other end of the connection.
Method set​Line​Mode Sets the line-mode of this receiver.
Method set​Raw​Mode Sets the raw mode of this receiver. Further data received will be sent to rawDataReceived rather than lineReceived.
Constant MAX​_LENGTH The maximum length of a line to allow (If a sent line is longer than this, the connection is dropped). Default is 16384.
Instance Variable line​_mode Undocumented
Instance Variable _buffer Undocumented
Instance Variable _busy​Receiving Undocumented

Inherited from Protocol (via LineReceiver):

Method log​Prefix Return a prefix matching the class name, to identify log messages related to this protocol instance.
Class Variable factory Undocumented

Inherited from BaseProtocol (via LineReceiver, Protocol):

Method connection​Made Called when a connection is made.
Method make​Connection Make a connection to a transport and a server.
Instance Variable connected Undocumented
Instance Variable transport Undocumented

Inherited from _PauseableMixin (via LineReceiver):

Method pause​Producing Undocumented
Method resume​Producing Undocumented
Method stop​Producing Undocumented
Instance Variable paused Undocumented

Inherited from TelnetProtocol:

Method disable​Local Disable the given option locally.
Method disable​Remote Indicate that the peer has disabled this option.
Method enable​Local Enable the given option locally.
Method enable​Remote Indicate whether the peer should be allowed to enable this option.
Method unhandled​Command A command was received but not understood.
Method unhandled​Subnegotiation A subnegotiation command was received but not understood.
Class Variable _log Undocumented

Inherited from Protocol (via TelnetProtocol):

Method data​Received Called whenever data is received.
Method log​Prefix Return a prefix matching the class name, to identify log messages related to this protocol instance.
Class Variable factory Undocumented

Inherited from BaseProtocol (via TelnetProtocol, Protocol):

Method connection​Made Called when a connection is made.
Method make​Connection Make a connection to a transport and a server.
Instance Variable connected Undocumented
Instance Variable transport Undocumented
def connectionLost(self, reason): (source)

Called when the connection is shut down.

Clear any circular references here, and any external references to this Protocol. The connection has been closed.

Parameters
reason:twisted.python.failure.FailureUndocumented
def lineReceived(self, line): (source)
Override this for when each line is received.
Parameters
line:bytesThe line which was received with the delimiter removed.
def telnet_Discard(self, line): (source)

Undocumented