Part of twisted.protocols View Source
Function | loopbackAsync | Establish a connection between server and
client then transfer data between them until the connection is
closed. This is often useful for testing a protocol.
|
Class | LoopbackRelay | Undocumented |
Function | loopback | Run session between server and client. DEPRECATED in Twisted 2.5. Use loopbackAsync instead. |
Class | LoopbackClientFactory | Undocumented |
Function | loopbackTCP | Run session between server and client protocol instances over TCP. |
Function | loopbackUNIX | Run session between server and client protocol instances over UNIX socket. |
Class | _LoopbackQueue | Trivial wrapper around a list to give it an interface like a queue, which the addition of also sending notifications by way of a Deferred whenever the list has something added to it. |
Class | _LoopbackAddress | Undocumented |
Class | _LoopbackTransport | Undocumented |
Function | _loopbackAsyncBody | Transfer bytes from the output queue of each protocol to the input of the other. |
Function | _loopbackAsyncContinue | Undocumented |
Class | _FireOnClose | Undocumented |
server
and
client
then transfer data between them until the connection is
closed. This is often useful for testing a protocol.
Parameters | server | The protocol instance representing the server-side of this connection. |
client | The protocol instance representing the client-side of this connection. | |
Returns | A Deferred which
fires when the connection has been closed and both sides have received
notification of this.
|
Parameters | server | The protocol instance representing the server-side of this connection. |
serverToClient | The _LoopbackQueue
holding the server's output.
| |
client | The protocol instance representing the client-side of this connection. | |
clientToServer | The _LoopbackQueue
holding the client's output.
| |
Returns | A Deferred which
fires when the connection has been closed and both sides have received
notification of this.
|