twisted.conch.test.test_endpoints.SingleUseMemoryEndpoint(object) class documentationtwisted.conch.test.test_endpoints
(View In Hierarchy)
Implements interfaces: twisted.internet.interfaces.IStreamClientEndpoint
SingleUseMemoryEndpoint
is a client endpoint which allows one connection to be set up and then 
exposes an API for moving around bytes related to that connection.
| Instance Variable | pump | Noneuntil a connection is attempted, then aIOPumpinstance 
associated with the protocol which is connected. (type:IOPump) | 
| Method | __init__ | |
| Method | connect | Connect the protocolFactoryto the location specified by 
thisIStreamClientEndpointprovider. | 
None
until a connection is attempted, then a IOPump instance 
associated with the protocol which is connected. (type: IOPump)
  Connect the protocolFactory to the location specified by 
this IStreamClientEndpoint
provider.
| Parameters | protocolFactory | A provider of IProtocolFactory | 
| Returns | A Deferredthat results in anIProtocolupon successful connection otherwise aFailurewrappingConnectErrororNoProtocol. | |