class TelnetProtocol(protocol.Protocol): (source)
Known subclasses: twisted.conch.telnet.StatefulTelnetProtocol
, twisted.conch.telnet.TelnetBootstrapProtocol
Implements interfaces: twisted.conch.telnet.ITelnetProtocol
Undocumented
Method | disable |
Disable the given option locally. |
Method | disable |
Indicate that the peer has disabled this option. |
Method | enable |
Enable the given option locally. |
Method | enable |
Indicate whether the peer should be allowed to enable this option. |
Method | unhandled |
A command was received but not understood. |
Method | unhandled |
A subnegotiation command was received but not understood. |
Class Variable | _log |
Undocumented |
Inherited from Protocol
:
Method | connection |
Called when the connection is shut down. |
Method | data |
Called whenever data is received. |
Method | log |
Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Class Variable | factory |
Undocumented |
Inherited from BaseProtocol
(via Protocol
):
Method | connection |
Called when a connection is made. |
Method | make |
Make a connection to a transport and a server. |
Instance Variable | connected |
Undocumented |
Instance Variable | transport |
Undocumented |
Disable the given option locally.
Unlike enableLocal, this method cannot fail. The option must be disabled.
Parameters | |
option:bytes , a single character. | the option to be disabled. |
Indicate that the peer has disabled this option.
Parameters | |
option:bytes , a single character. | the option to be disabled. |
twisted.conch.telnet.TelnetBootstrapProtocol
Enable the given option locally.
This should enable the given option on this side of the telnet connection and return True. If False is returned, the option will be treated as still disabled and the peer will be notified.
Parameters | |
option:bytes , a single character. | the option to be enabled. |
twisted.conch.telnet.TelnetBootstrapProtocol
Indicate whether the peer should be allowed to enable this option.
Returns True if the peer should be allowed to enable this option, False otherwise.
Parameters | |
option:bytes , a single character. | the option to be enabled. |
A subnegotiation command was received but not understood.
Parameters | |
command:str , a single character. | the command being subnegotiated. That is, the first byte after the SB command. |
data:bytes , each a single character | all other bytes of the subneogation. That is, all but the first bytes between SB and SE, with IAC un-escaping applied. |