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 | None
until a connection is attempted, then a IOPump instance
associated with the protocol which is connected. (type: IOPump ) |
Method | __init__ | |
Method | connect | Connect the protocolFactory to the location specified by
this IStreamClientEndpoint
provider. |
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 Deferred
that results in an IProtocol
upon successful connection otherwise a Failure
wrapping ConnectError
or NoProtocol . |