class documentation
class SingleUseMemoryEndpoint: (source)
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.
Method | __init__ |
No summary |
Method | connect |
Connect the protocolFactory to the location specified by this IStreamClientEndpoint provider. |
Instance Variable | pump |
None until a connection is attempted, then a IOPump instance associated with the protocol which is connected. |
Instance Variable | _server |
Undocumented |
Connect the protocolFactory to the location specified by this IStreamClientEndpoint
provider.
Parameters | |
factory | Undocumented |
protocol | A provider of IProtocolFactory |
Returns | |
A Deferred that results in an IProtocol upon successful connection otherwise a Failure wrapping ConnectError or NoProtocol . |
None
until a connection is attempted, then a IOPump
instance associated with the protocol which is connected.