class TelnetTransport(Telnet, ProtocolTransportMixin): (source)
Constructor: TelnetTransport(protocolFactory, *a, **kw)
Method | __init__ |
Undocumented |
Method | application |
Called with application-level data. |
Method | connection |
Called when the connection is shut down. |
Method | connection |
Called when a connection is made. |
Method | disable |
Signal a programming error by raising an exception. |
Method | disable |
Signal a programming error by raising an exception. |
Method | enable |
Reject all attempts to enable options. |
Method | enable |
Reject all attempts to enable options. |
Method | unhandled |
Called for commands for which no handler is installed. |
Method | unhandled |
Called for subnegotiations for which no handler is installed. |
Method | write |
Undocumented |
Class Variable | disconnecting |
Undocumented |
Instance Variable | protocol |
An instance of the protocol to which this transport is connected, or None before the connection is established and after it is lost. |
Instance Variable | protocol |
A tuple of additional arguments to pass to protocolFactory. |
Instance Variable | protocol |
A callable which returns protocol instances which provide ITelnetProtocol . This will be invoked when a connection is established. It is passed *protocolArgs and **protocolKwArgs. |
Instance Variable | protocol |
A dictionary of additional arguments to pass to protocolFactory. |
Inherited from Telnet
:
Method | command |
Undocumented |
Method | data |
Called whenever data is received. |
Method | do |
Undocumented |
Method | do |
Undocumented |
Method | do |
Undocumented |
Method | do |
Undocumented |
Method | do |
Undocumented |
Method | dont |
Undocumented |
Method | dont |
Undocumented |
Method | dont |
Undocumented |
Method | dont |
Undocumented |
Method | dont |
Undocumented |
Method | get |
Undocumented |
Method | negotiate |
Undocumented |
Method | request |
Send a negotiation message for the option about with data as the payload. |
Method | telnet_ |
Undocumented |
Method | telnet_ |
Undocumented |
Method | telnet_ |
Undocumented |
Method | telnet_ |
Undocumented |
Method | will |
Indicate our willingness to enable an option. |
Method | will |
Undocumented |
Method | will |
Undocumented |
Method | will |
Undocumented |
Method | will |
Undocumented |
Method | wont |
Indicate we are not willing to enable an option. |
Method | wont |
Undocumented |
Method | wont |
Undocumented |
Method | wont |
Undocumented |
Method | wont |
Undocumented |
Class Variable | do |
Undocumented |
Class Variable | dont |
Undocumented |
Class Variable | will |
Undocumented |
Class Variable | wont |
Undocumented |
Instance Variable | command |
A mapping of bytes to callables. When a telnet command is received, the command byte (the first byte after IAC) is looked up in this dictionary. If a callable is found, it is invoked with the argument of the command, or None if the command takes no argument... |
Instance Variable | negotiation |
A mapping of bytes to callables. When a subnegotiation command is received, the command byte (the first byte after SB) is looked up in this dictionary. If a callable is found, it is invoked with the argument of the subnegotiation... |
Instance Variable | options |
A mapping of option bytes to their current state. This state is likely of little use to user code. Changes should not be made to it. |
Instance Variable | state |
A string indicating the current parse state. It can take on the values "data", "escaped", "command", "newline", "subnegotiation", and "subnegotiation-escaped". Changes should not be made to it. |
Instance Variable | transport |
This protocol's transport object. |
Class | _ |
Represents the state of an option on both sides of a telnet connection. |
Method | _do |
Undocumented |
Method | _dont |
Undocumented |
Method | _will |
Undocumented |
Method | _wont |
Undocumented |
Method | _write |
Undocumented |
Inherited from Protocol
(via Telnet
):
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 Telnet
, Protocol
):
Method | make |
Make a connection to a transport and a server. |
Instance Variable | connected |
Undocumented |
Inherited from ProtocolTransportMixin
(via Telnet
, Protocol
, BaseProtocol
):
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | lose |
Undocumented |
Method | write |
Undocumented |
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.Failure | Undocumented |
Called when a connection is made.
This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
twisted.conch.telnet.Telnet.disableLocal
Signal a programming error by raising an exception.
enableLocal
must return true for the given value of option in order for this method to be called. If a subclass of Telnet
overrides enableLocal to allow certain options to be enabled, it must also override disableLocal to disable those options.
Raises | |
NotImplementedError | Always raised. |
Signal a programming error by raising an exception.
enableRemote
must return true for the given value of option in order for this method to be called. If a subclass of Telnet
overrides enableRemote to allow certain options to be enabled, it must also override disableRemote tto disable those options.
Raises | |
NotImplementedError | Always raised. |
An instance of the protocol to which this transport is connected, or None before the connection is established and after it is lost.
A callable which returns protocol instances which provide ITelnetProtocol
. This will be invoked when a connection is established. It is passed *protocolArgs and **protocolKwArgs.