Part of twisted.conch.telnet View Source View In Hierarchy
Method | do | Indicate a desire for the peer to begin performing the given option. |
Method | dont | Indicate a desire for the peer to cease performing the given option. |
Method | will | Indicate our willingness to begin performing this option locally. |
Method | wont | Indicate that we will stop performing the given option. |
Method | requestNegotiation | Send a subnegotiation request. |
Inherited from ITransport:
Method | write | Write some data to the physical connection, in sequence, in a non-blocking fashion. |
Method | writeSequence | Write a list of strings to the physical connection. |
Method | loseConnection | Close my connection, after writing all pending data. |
Method | getPeer | Get the remote address of this connection. |
Method | getHost | Similar to getPeer, but returns an address describing this side of the connection. |
Indicate a desire for the peer to begin performing the given option.
Returns a Deferred that fires with True when the peer begins performing
the option, or False when the peer refuses to perform it. If the peer is
already performing the given option, the Deferred will fail with AlreadyEnabled
.
If a negotiation regarding this option is already in progress, the Deferred
will fail with AlreadyNegotiating
.
Indicate a desire for the peer to cease performing the given option.
Returns a Deferred that fires with True when the peer ceases performing
the option. If the peer is not performing the given option, the Deferred
will fail with AlreadyDisabled
.
If negotiation regarding this option is already in progress, the Deferred
will fail with AlreadyNegotiating
.
Indicate our willingness to begin performing this option locally.
Returns a Deferred that fires with True when the peer agrees to allow us
to begin performing this option, or False if the peer refuses to allow us
to begin performing it. If the option is already enabled locally, the
Deferred will fail with AlreadyEnabled
.
If negotiation regarding this option is already in progress, the Deferred
will fail with AlreadyNegotiating
.
Indicate that we will stop performing the given option.
Returns a Deferred that fires with True when the peer acknowledges we
have stopped performing this option. If the option is already disabled
locally, the Deferred will fail with AlreadyDisabled
.
If negotiation regarding this option is already in progress, the Deferred
will fail with AlreadyNegotiating
.
Parameters | about | A byte indicating the feature being negotiated. |
bytes | Any number of bytes containing specific information about the negotiation being requested. No values in this string need to be escaped, as this function will escape any value which requires it. |