twisted.conch.telnet.TelnetTransport(Telnet, ProtocolTransportMixin)
class documentationtwisted.conch.telnet
View Source
(View In Hierarchy)
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 | protocolFactory | 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 | protocolArgs | A tuple of additional arguments to pass to protocolFactory. |
Instance Variable | protocolKwArgs | A dictionary of additional arguments to pass to protocolFactory. |
Method | __init__ | Undocumented |
Method | connectionMade | Called when a connection is made. |
Method | connectionLost | Called when the connection is shut down. |
Method | enableLocal | Reject all attempts to enable options. |
Method | enableRemote | Reject all attempts to enable options. |
Method | disableLocal | Signal a programming error by raising an exception. |
Method | disableRemote | Signal a programming error by raising an exception. |
Method | unhandledSubnegotiation | Called for subnegotiations for which no handler is installed. |
Method | unhandledCommand | Called for commands for which no handler is installed. |
Method | applicationDataReceived | Called with application-level data. |
Method | write | Undocumented |
Inherited from ProtocolTransportMixin:
Method | writeSequence | Undocumented |
Method | loseConnection | Undocumented |
Method | getHost | Undocumented |
Method | getPeer | Undocumented |
Inherited from ProtocolTransportMixin:
Method | writeSequence | Undocumented |
Method | loseConnection | Undocumented |
Method | getHost | Undocumented |
Method | getPeer | Undocumented |
Inherited from ProtocolTransportMixin:
Method | writeSequence | Undocumented |
Method | loseConnection | Undocumented |
Method | getHost | Undocumented |
Method | getPeer | Undocumented |
Inherited from ProtocolTransportMixin:
Method | writeSequence | Undocumented |
Method | loseConnection | Undocumented |
Method | getHost | Undocumented |
Method | getPeer | Undocumented |
ITelnetProtocol
.
This will be invoked when a connection is established. It is passed
*protocolArgs and **protocolKwArgs.
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.
Called when the connection is shut down.
Clear any circular references here, and any external references to this Protocol. The connection has been closed.
Reject all attempts to enable options.
Reject all attempts to enable options.
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. |
Called for subnegotiations for which no handler is installed.
Called for commands for which no handler is installed.