Module Expr Str ImportFrom alias alias alias Import alias TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body Pass ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str decorator_list Call NameLoad AttributeLoad NameLoad attr ClassDef bases body Expr Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Assign NameStore Num Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad BoolOpOr BoolOpAnd AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore BinOpBitXor AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign AttributeStore NameLoad attr ListLoad Return Call AttributeLoad Str attr NameLoad orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad NameLoad attr orelse Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assert CompareIsNot AttributeLoad NameLoad attr NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr orelse Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad keyword NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad For NameStore Call NameLoad Num body If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse Break orelse Assert Num Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If BoolOpOr AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpOr AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str If NameLoad body Expr Call NameLoad BinOpAdd Str Call NameLoad NameLoad If NameLoad body Expr Call NameLoad BinOpAdd Str Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpOr NameLoad NameLoad body Return NameLoad If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpOr AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpOr AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameLoad If CompareEq NameLoad NameLoad body Return TupleLoad NameLoad NameLoad orelse Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Call NameLoad Call NameLoad body Expr Str Expr Call AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Index Num attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Str Num Assign NameStore Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad Call NameLoad NameLoad decorator_list
N/A N/A 
Utilities and helpers for simulating a network
 __future__ absolute_import division print_function N/A itertools N/A N/A OpenSSL.SSL Error NativeOpenSSLError N/A N/A N/A ImportError N/A N/A zope.interface implementer directlyProvides twisted.internet.endpoints TCP4ClientEndpoint TCP4ServerEndpoint twisted.internet.protocol Factory Protocol twisted.internet.error ConnectionRefusedError twisted.python.failure Failure twisted.internet error twisted.internet interfaces proto_helpers MemoryReactorClock TLSNegotiation N/A N/A __init__ N/A N/A self obj connectState N/A N/A N/A N/A self obj obj N/A N/A self connectState connectState N/A N/A self sent False N/A N/A self readyToSend connectState N/A __repr__ N/A N/A self N/A N/A N/A N/A TLSNegotiation(%r) N/A N/A self obj N/A pretendToVerify N/A N/A self other tpt N/A N/A N/A N/A N/A N/A N/A self obj iosimVerify N/A other obj N/A N/A N/A tpt disconnectReason N/A NativeOpenSSLError N/A N/A N/A tpt loseConnection N/A N/A FakeAddress N/A object N/A N/A 
    The default address type for the host and peer of L{FakeTransport}
    connections.
     N/A N/A implementer N/A interfaces IAddress FakeTransport N/A N/A N/A 
    A wrapper around a file-like object to make it behave as a Transport.

    This doesn't actually stream the file to the attached protocol,
    and is thus useful mainly as a utility for debugging protocols.
     N/A _nextserial N/A staticmethod N/A N/A N/A counter N/A N/A N/A itertools count N/A next counter N/A closed 0 N/A disconnecting 0 N/A disconnected 0 N/A disconnectReason N/A N/A error ConnectionDone Connection done N/A producer None N/A streamingProducer 0 N/A tls None __init__ N/A N/A self protocol isServer hostAddress peerAddress N/A None None N/A N/A 
        @param protocol: This transport will deliver bytes to this protocol.
        @type protocol: L{IProtocol} provider

        @param isServer: C{True} if this is the accepting side of the
            connection, C{False} if it is the connecting side.
        @type isServer: L{bool}

        @param hostAddress: The value to return from C{getHost}.  C{None}
            results in a new L{FakeAddress} being created to use as the value.
        @type hostAddress: L{IAddress} provider or L{NoneType}

        @param peerAddress: The value to return from C{getPeer}.  C{None}
            results in a new L{FakeAddress} being created to use as the value.
        @type peerAddress: L{IAddress} provider or L{NoneType}
         N/A N/A self protocol protocol N/A N/A self isServer isServer N/A N/A self stream N/A N/A N/A self serial N/A N/A self _nextserial N/A N/A hostAddress None N/A N/A hostAddress N/A FakeAddress N/A N/A self hostAddress hostAddress N/A N/A peerAddress None N/A N/A peerAddress N/A FakeAddress N/A N/A self peerAddress peerAddress N/A __repr__ N/A N/A self N/A N/A N/A N/A FakeTransport<%s,%s,%s> N/A N/A N/A N/A self isServer S C N/A self serial N/A N/A N/A self protocol __class__ __name__ N/A write N/A N/A self data N/A N/A N/A N/A N/A self tls None N/A N/A N/A N/A N/A self tlsbuf append data N/A N/A N/A N/A N/A self stream append data N/A _checkProducer N/A N/A self N/A N/A N/A N/A self producer N/A N/A N/A N/A N/A self producer resumeProducing N/A registerProducer N/A N/A self producer streaming N/A N/A N/A 
        From abstract.FileDescriptor
         N/A N/A self producer producer N/A N/A self streamingProducer streaming N/A N/A streaming N/A N/A N/A N/A producer resumeProducing N/A unregisterProducer N/A N/A self N/A N/A N/A N/A self producer None N/A stopConsuming N/A N/A self N/A N/A N/A N/A N/A self unregisterProducer N/A N/A N/A self loseConnection N/A writeSequence N/A N/A self iovec N/A N/A N/A N/A N/A self write N/A N/A join iovec N/A loseConnection N/A N/A self N/A N/A N/A N/A self disconnecting True N/A abortConnection N/A N/A self N/A N/A N/A 
        For the time being, this is the same as loseConnection; no buffered
        data will be lost.
         N/A N/A self disconnecting True N/A reportDisconnect N/A N/A self N/A N/A N/A N/A N/A self tls None N/A N/A err N/A NativeOpenSSLError N/A N/A err N/A self disconnectReason N/A N/A N/A N/A self protocol connectionLost N/A Failure err N/A logPrefix N/A N/A self N/A N/A N/A 
        Identify this transport/event source to the logging system.
         N/A iosim N/A getPeer N/A N/A self N/A N/A N/A N/A self peerAddress N/A getHost N/A N/A self N/A N/A N/A N/A self hostAddress N/A resumeProducing N/A N/A self N/A N/A N/A N/A pauseProducing N/A N/A self N/A N/A N/A N/A stopProducing N/A N/A self N/A N/A N/A N/A N/A self loseConnection N/A startTLS N/A N/A self contextFactory beNormal N/A True N/A N/A connectState N/A N/A self isServer beNormal N/A N/A self tls N/A TLSNegotiation contextFactory connectState N/A N/A self tlsbuf N/A N/A getOutBuffer N/A N/A self N/A N/A N/A 
        Get the pending writes from this transport, clearing them from the
        pending buffer.

        @return: the bytes written with C{transport.write}
        @rtype: L{bytes}
         N/A S N/A self stream N/A S N/A N/A N/A self stream N/A N/A N/A N/A join S N/A N/A N/A N/A self tls None N/A N/A N/A N/A self tls readyToSend N/A N/A N/A N/A self tls sent True N/A N/A self tls N/A N/A None N/A N/A None N/A bufferReceived N/A N/A self buf N/A N/A N/A N/A isinstance buf TLSNegotiation N/A N/A N/A N/A self tls None N/A N/A N/A self tls sent N/A N/A N/A N/A N/A self tls pretendToVerify buf self N/A N/A self tls None N/A N/A b N/A self tlsbuf N/A N/A self tlsbuf None N/A N/A N/A self writeSequence b N/A N/A directlyProvides self N/A interfaces ISSLTransport N/A N/A N/A N/A self tls readyToSend True N/A N/A N/A N/A N/A self protocol dataReceived buf N/A N/A N/A implementer N/A interfaces ITransport N/A interfaces ITLSTransport makeFakeClient N/A N/A clientProtocol N/A N/A N/A 
    Create and return a new in-memory transport hooked up to the given protocol.

    @param clientProtocol: The client protocol to use.
    @type clientProtocol: L{IProtocol} provider

    @return: The transport.
    @rtype: L{FakeTransport}
     N/A N/A FakeTransport clientProtocol isServer False N/A makeFakeServer N/A N/A serverProtocol N/A N/A N/A 
    Create and return a new in-memory transport hooked up to the given protocol.

    @param serverProtocol: The server protocol to use.
    @type serverProtocol: L{IProtocol} provider

    @return: The transport.
    @rtype: L{FakeTransport}
     N/A N/A FakeTransport serverProtocol isServer True N/A IOPump N/A N/A N/A 
    Utility to pump data between clients and servers for protocol testing.

    Perhaps this is a utility worthy of being in protocol.py?
     __init__ N/A N/A self client server clientIO serverIO debug N/A N/A N/A N/A self client client N/A N/A self server server N/A N/A self clientIO clientIO N/A N/A self serverIO serverIO N/A N/A self debug debug N/A flush N/A N/A self debug N/A False N/A N/A 
        Pump until there is no more input or output.

        Returns whether any data was moved.
         N/A result False N/A x N/A range 1000 N/A N/A N/A N/A self pump debug N/A N/A result True N/A N/A N/A N/A 0 Too long N/A result N/A pump N/A N/A self debug N/A False N/A N/A 
        Move data back and forth.

        Returns whether any data was moved.
         N/A N/A N/A self debug debug N/A N/A N/A print -- GLUG -- N/A sData N/A N/A N/A self serverIO getOutBuffer N/A cData N/A N/A N/A self clientIO getOutBuffer N/A N/A N/A N/A self clientIO _checkProducer N/A N/A N/A N/A self serverIO _checkProducer N/A N/A N/A self debug debug N/A N/A N/A print . N/A cData N/A N/A N/A print N/A C:  N/A repr cData N/A sData N/A N/A N/A print N/A S:  N/A repr sData N/A cData N/A N/A N/A N/A N/A self serverIO bufferReceived cData N/A sData N/A N/A N/A N/A N/A self clientIO bufferReceived sData N/A N/A cData sData N/A N/A True N/A N/A N/A N/A self serverIO disconnecting N/A N/A N/A self serverIO disconnected N/A N/A N/A N/A self debug debug N/A N/A N/A print * C N/A N/A N/A self serverIO disconnected True N/A N/A N/A self clientIO disconnecting True N/A N/A N/A N/A self clientIO reportDisconnect N/A True N/A N/A N/A N/A self clientIO disconnecting N/A N/A N/A self clientIO disconnected N/A N/A N/A N/A self debug debug N/A N/A N/A print * S N/A N/A N/A self clientIO disconnected True N/A N/A N/A self serverIO disconnecting True N/A N/A N/A N/A self serverIO reportDisconnect N/A True N/A False N/A N/A connect N/A N/A serverProtocol serverTransport clientProtocol clientTransport debug N/A False N/A N/A 
    Create a new L{IOPump} connecting two protocols.

    @param serverProtocol: The protocol to use on the accepting side of the
        connection.
    @type serverProtocol: L{IProtocol} provider

    @param serverTransport: The transport to associate with C{serverProtocol}.
    @type serverTransport: L{FakeTransport}

    @param clientProtocol: The protocol to use on the initiating side of the
        connection.
    @type clientProtocol: L{IProtocol} provider

    @param clientTransport: The transport to associate with C{clientProtocol}.
    @type clientTransport: L{FakeTransport}

    @param debug: A flag indicating whether to log information about what the
        L{IOPump} is doing.
    @type debug: L{bool}

    @return: An L{IOPump} which connects C{serverProtocol} and
        C{clientProtocol} and delivers bytes between them when it is pumped.
    @rtype: L{IOPump}
     N/A N/A N/A serverProtocol makeConnection serverTransport N/A N/A N/A clientProtocol makeConnection clientTransport N/A pump N/A IOPump clientProtocol serverProtocol clientTransport serverTransport debug N/A N/A N/A pump flush N/A pump N/A connectedServerAndClient N/A N/A ServerClass ClientClass clientTransportFactory serverTransportFactory debug N/A makeFakeClient makeFakeServer False N/A N/A 
    Connect a given server and client class to each other.

    @param ServerClass: a callable that produces the server-side protocol.
    @type ServerClass: 0-argument callable returning L{IProtocol} provider.

    @param ClientClass: like C{ServerClass} but for the other side of the
        connection.
    @type ClientClass: 0-argument callable returning L{IProtocol} provider.

    @param clientTransportFactory: a callable that produces the transport which
        will be attached to the protocol returned from C{ClientClass}.
    @type clientTransportFactory: callable taking (L{IProtocol}) and returning
        L{FakeTransport}

    @param serverTransportFactory: a callable that produces the transport which
        will be attached to the protocol returned from C{ServerClass}.
    @type serverTransportFactory: callable taking (L{IProtocol}) and returning
        L{FakeTransport}

    @param debug: Should this dump an escaped version of all traffic on this
        connection to stdout for inspection?
    @type debug: L{bool}

    @return: the client protocol, the server protocol, and an L{IOPump} which,
        when its C{pump} and C{flush} methods are called, will move data
        between the created client and server protocol instances.
    @rtype: 3-L{tuple} of L{IProtocol}, L{IProtocol}, L{IOPump}
     N/A c N/A ClientClass N/A s N/A ServerClass N/A cio N/A clientTransportFactory c N/A sio N/A serverTransportFactory s N/A N/A c s N/A connect s sio c cio debug N/A _factoriesShouldConnect N/A N/A clientInfo serverInfo N/A N/A N/A 
    Should the client and server described by the arguments be connected to
    each other, i.e. do their port numbers match?

    @param clientInfo: the args for connectTCP
    @type clientInfo: L{tuple}

    @param serverInfo: the args for listenTCP
    @type serverInfo: L{tuple}

    @return: If they do match, return factories for the client and server that
        should connect; otherwise return L{None}, indicating they shouldn't be
        connected.
    @rtype: L{types.NoneType} or 2-L{tuple} of (L{ClientFactory},
        L{IProtocolFactory})
     N/A N/A clientHost clientPort clientFactory clientTimeout clientBindAddress clientInfo N/A N/A serverPort serverFactory serverBacklog serverInterface serverInfo N/A N/A serverPort clientPort N/A N/A N/A clientFactory serverFactory N/A N/A None N/A ConnectionCompleter N/A object N/A N/A 
    A L{ConnectionCompleter} can cause synthetic TCP connections established by
    L{MemoryReactor.connectTCP} and L{MemoryReactor.listenTCP} to succeed or
    fail.
     __init__ N/A N/A self memoryReactor N/A N/A N/A 
        Create a L{ConnectionCompleter} from a L{MemoryReactor}.

        @param memoryReactor: The reactor to attach to.
        @type memoryReactor: L{MemoryReactor}
         N/A N/A self _reactor memoryReactor N/A succeedOnce N/A N/A self debug N/A False N/A N/A 
        Complete a single TCP connection established on this
        L{ConnectionCompleter}'s L{MemoryReactor}.

        @param debug: A flag; whether to dump output from the established
            connection to stdout.
        @type debug: L{bool}

        @return: a pump for the connection, or L{None} if no connection could
            be established.
        @rtype: L{IOPump} or L{None}
         N/A memoryReactor N/A self _reactor N/A N/A clientIdx clientInfo N/A enumerate N/A memoryReactor tcpClients N/A N/A serverInfo N/A memoryReactor tcpServers N/A N/A factories N/A _factoriesShouldConnect clientInfo serverInfo N/A factories N/A N/A N/A N/A N/A memoryReactor tcpClients remove clientInfo N/A N/A N/A N/A memoryReactor connectors pop clientIdx N/A N/A clientFactory serverFactory factories N/A clientProtocol N/A N/A clientFactory buildProtocol None N/A serverProtocol N/A N/A serverFactory buildProtocol None N/A serverTransport N/A makeFakeServer serverProtocol N/A clientTransport N/A makeFakeClient clientProtocol N/A N/A connect serverProtocol serverTransport clientProtocol clientTransport debug N/A failOnce N/A N/A self reason N/A N/A Failure N/A ConnectionRefusedError N/A N/A 
        Fail a single TCP connection established on this
        L{ConnectionCompleter}'s L{MemoryReactor}.

        @param reason: the reason to provide that the connection failed.
        @type reason: L{Failure}
         N/A N/A N/A N/A N/A N/A N/A N/A self _reactor tcpClients pop 0 N/A 2 clientConnectionFailed N/A N/A N/A N/A self _reactor connectors pop 0 reason N/A N/A connectableEndpoint N/A N/A debug N/A False N/A N/A 
    Create an endpoint that can be fired on demand.

    @param debug: A flag; whether to dump output from the established
        connection to stdout.
    @type debug: L{bool}

    @return: A client endpoint, and an object that will cause one of the
        L{Deferred}s returned by that client endpoint.
    @rtype: 2-L{tuple} of (L{IStreamClientEndpoint}, L{ConnectionCompleter})
     N/A reactor N/A MemoryReactorClock N/A clientEndpoint N/A TCP4ClientEndpoint reactor 0.0.0.0 4321 N/A serverEndpoint N/A TCP4ServerEndpoint reactor 4321 N/A N/A N/A serverEndpoint listen N/A N/A Factory forProtocol Protocol N/A N/A clientEndpoint N/A ConnectionCompleter reactor N/A