Module Expr Str ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list Call NameLoad NameLoad ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assert CompareIs AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assert CompareIsNot AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad Assign NameStore NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list While Num body Assign NameStore NameStore NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad If AttributeLoad NameLoad attr body Assign NameStore NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad ImportFrom alias Return Call NameLoad NameLoad Num NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases body Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad 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 If CompareEq AttributeLoad NameLoad attr Num body Return If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Str ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Return NameLoad decorator_list
N/A N/A 
Testing support for protocols -- loopback between client and server.
 __future__ division absolute_import N/A tempfile zope.interface implementer twisted.protocols policies twisted.internet interfaces protocol main defer twisted.internet.task deferLater twisted.python failure twisted.internet.interfaces IAddress _LoopbackQueue N/A object N/A N/A 
    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.
     N/A _notificationDeferred None N/A disconnect False __init__ N/A N/A self N/A N/A N/A N/A self _queue N/A N/A put N/A N/A self v N/A N/A N/A N/A N/A N/A self _queue append v N/A N/A N/A self _notificationDeferred None N/A N/A N/A d N/A self _notificationDeferred N/A N/A self _notificationDeferred None N/A N/A N/A d callback None N/A __nonzero__ N/A N/A self N/A N/A N/A N/A bool N/A self _queue N/A N/A __bool__ __nonzero__ get N/A N/A self N/A N/A N/A N/A N/A N/A self _queue pop 0 N/A N/A _LoopbackAddress N/A object N/A N/A N/A N/A implementer IAddress _LoopbackTransport N/A object N/A N/A disconnecting False N/A producer None __init__ N/A N/A self q N/A N/A N/A N/A self q q N/A write N/A N/A self data N/A N/A N/A N/A N/A isinstance data bytes N/A N/A N/A TypeError Can only write bytes to ITransport N/A N/A N/A N/A self q put data N/A writeSequence N/A N/A self iovec N/A N/A N/A N/A N/A N/A self q put N/A N/A join iovec N/A loseConnection N/A N/A self N/A N/A N/A N/A N/A self q disconnect True N/A N/A N/A N/A self q put None N/A abortConnection N/A N/A self N/A N/A N/A 
        Abort the connection. Same as L{loseConnection}.
         N/A N/A N/A self loseConnection N/A getPeer N/A N/A self N/A N/A N/A N/A _LoopbackAddress N/A getHost N/A N/A self N/A N/A N/A N/A _LoopbackAddress N/A registerProducer N/A N/A self producer streaming N/A N/A N/A N/A N/A self producer None N/A N/A self producer producer N/A N/A self streamingProducer streaming N/A N/A N/A self _pollProducer N/A unregisterProducer N/A N/A self N/A N/A N/A N/A N/A self producer None N/A N/A self producer None N/A _pollProducer N/A N/A self N/A N/A N/A N/A N/A N/A self producer None N/A N/A self streamingProducer N/A N/A N/A N/A N/A self producer resumeProducing N/A N/A N/A implementer N/A interfaces ITransport N/A interfaces IConsumer identityPumpPolicy N/A N/A queue target N/A N/A N/A 
    L{identityPumpPolicy} is a policy which delivers each chunk of data written
    to the given queue as-is to the target.

    This isn't a particularly realistic policy.

    @see: L{loopbackAsync}
     N/A queue N/A N/A bytes N/A N/A queue get N/A N/A bytes None N/A N/A N/A N/A N/A target dataReceived bytes N/A collapsingPumpPolicy N/A N/A queue target N/A N/A N/A 
    L{collapsingPumpPolicy} is a policy which collapses all outstanding chunks
    into a single string and delivers it to the target.

    @see: L{loopbackAsync}
     N/A bytes N/A N/A queue N/A N/A chunk N/A N/A queue get N/A N/A chunk None N/A N/A N/A N/A N/A bytes append chunk N/A bytes N/A N/A N/A N/A target dataReceived N/A N/A join bytes N/A loopbackAsync N/A N/A server client pumpPolicy N/A identityPumpPolicy N/A N/A 
    Establish a connection between C{server} and C{client} then transfer data
    between them until the connection is closed. This is often useful for
    testing a protocol.

    @param server: The protocol instance representing the server-side of this
        connection.

    @param client: The protocol instance representing the client-side of this
        connection.

    @param pumpPolicy: When either C{server} or C{client} writes to its
        transport, the string passed in is added to a queue of data for the
        other protocol.  Eventually, C{pumpPolicy} will be called with one such
        queue and the corresponding protocol object.  The pump policy callable
        is responsible for emptying the queue and passing the strings it
        contains to the given protocol's C{dataReceived} method.  The signature
        of C{pumpPolicy} is C{(queue, protocol)}.  C{queue} is an object with a
        C{get} method which will return the next string written to the
        transport, or C{None} if the transport has been disconnected, and which
        evaluates to C{True} if and only if there are more items to be
        retrieved via C{get}.

    @return: A L{Deferred} which fires when the connection has been closed and
        both sides have received notification of this.
     N/A serverToClient N/A _LoopbackQueue N/A clientToServer N/A _LoopbackQueue N/A N/A N/A server makeConnection N/A _LoopbackTransport serverToClient N/A N/A N/A client makeConnection N/A _LoopbackTransport clientToServer N/A N/A _loopbackAsyncBody server serverToClient client clientToServer pumpPolicy N/A _loopbackAsyncBody N/A N/A server serverToClient client clientToServer pumpPolicy N/A N/A N/A 
    Transfer bytes from the output queue of each protocol to the input of the other.

    @param server: The protocol instance representing the server-side of this
    connection.

    @param serverToClient: The L{_LoopbackQueue} holding the server's output.

    @param client: The protocol instance representing the client-side of this
    connection.

    @param clientToServer: The L{_LoopbackQueue} holding the client's output.

    @param pumpPolicy: See L{loopbackAsync}.

    @return: A L{Deferred} which fires when the connection has been closed and
        both sides have received notification of this.
     pump N/A N/A source q target N/A N/A N/A sent False N/A q N/A N/A N/A pumpPolicy q target N/A sent True N/A N/A sent N/A q N/A N/A N/A N/A N/A source transport _pollProducer N/A sent N/A N/A 1 N/A N/A disconnect clientSent serverSent False N/A serverSent N/A pump server serverToClient client N/A clientSent N/A pump client clientToServer server N/A N/A N/A clientSent N/A serverSent N/A N/A d N/A N/A defer Deferred N/A N/A clientToServer _notificationDeferred d N/A N/A serverToClient _notificationDeferred d N/A N/A N/A d addCallback _loopbackAsyncContinue server serverToClient client clientToServer pumpPolicy N/A d N/A N/A serverToClient disconnect N/A N/A disconnect True N/A N/A pump server serverToClient client N/A N/A N/A clientToServer disconnect N/A N/A disconnect True N/A N/A pump client clientToServer server N/A disconnect N/A N/A N/A N/A server connectionLost N/A N/A failure Failure N/A main CONNECTION_DONE N/A N/A N/A client connectionLost N/A N/A failure Failure N/A main CONNECTION_DONE N/A N/A N/A defer succeed None N/A _loopbackAsyncContinue N/A N/A ignored server serverToClient client clientToServer pumpPolicy N/A N/A N/A N/A clientToServer _notificationDeferred None N/A N/A serverToClient _notificationDeferred None twisted.internet reactor N/A N/A deferLater reactor 0 _loopbackAsyncBody server serverToClient client clientToServer pumpPolicy N/A LoopbackRelay N/A N/A N/A buffer N/A shouldLose 0 N/A disconnecting 0 N/A producer None __init__ N/A N/A self target logFile N/A None N/A N/A N/A self target target N/A N/A self logFile logFile N/A write N/A N/A self data N/A N/A N/A N/A self buffer N/A N/A self buffer data N/A N/A self logFile N/A N/A N/A N/A N/A self logFile write N/A loopback writing %s
 N/A repr data 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 clearBuffer N/A N/A self N/A N/A N/A N/A N/A self shouldLose -1 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 N/A self buffer N/A N/A N/A self logFile N/A N/A N/A N/A N/A self logFile write N/A loopback receiving %s
 N/A repr N/A self buffer N/A buffer N/A self buffer N/A N/A self buffer N/A N/A N/A N/A self target dataReceived buffer N/A N/A N/A self shouldLose 1 N/A N/A N/A self shouldLose -1 N/A N/A N/A N/A self target connectionLost N/A N/A failure Failure N/A main CONNECTION_DONE N/A loseConnection N/A N/A self N/A N/A N/A N/A N/A self shouldLose -1 N/A N/A N/A self shouldLose 1 N/A getHost N/A N/A self N/A N/A N/A loopback N/A getPeer N/A N/A self N/A N/A N/A loopback N/A registerProducer N/A N/A self producer streaming N/A N/A N/A N/A self producer producer N/A unregisterProducer N/A N/A self N/A N/A N/A N/A self producer None N/A logPrefix N/A N/A self N/A N/A N/A N/A Loopback(%r) N/A N/A N/A N/A self target __class__ __name__ N/A N/A N/A implementer N/A interfaces ITransport N/A interfaces IConsumer LoopbackClientFactory N/A N/A protocol ClientFactory N/A __init__ N/A N/A self protocol N/A N/A N/A N/A self disconnected 0 N/A N/A self deferred N/A N/A defer Deferred N/A N/A self protocol protocol N/A buildProtocol N/A N/A self addr N/A N/A N/A N/A self protocol N/A clientConnectionLost N/A N/A self connector reason N/A N/A N/A N/A self disconnected 1 N/A N/A N/A N/A self deferred callback None N/A N/A _FireOnClose N/A N/A policies ProtocolWrapper N/A __init__ N/A N/A self protocol factory N/A N/A N/A N/A N/A N/A policies ProtocolWrapper __init__ self protocol factory N/A N/A self deferred N/A N/A defer Deferred N/A connectionLost N/A N/A self reason N/A N/A N/A N/A N/A N/A policies ProtocolWrapper connectionLost self reason N/A N/A N/A N/A self deferred callback None N/A N/A loopbackTCP N/A N/A server client port noisy N/A 0 True N/A N/A Run session between server and client protocol instances over TCP. twisted.internet reactor N/A f N/A N/A policies WrappingFactory N/A N/A protocol Factory N/A serverWrapper N/A _FireOnClose f server N/A N/A f noisy noisy N/A N/A f buildProtocol N/A N/A N/A addr N/A serverWrapper N/A serverPort N/A N/A reactor listenTCP port f interface 127.0.0.1 N/A clientF N/A LoopbackClientFactory client N/A N/A clientF noisy noisy N/A N/A N/A reactor connectTCP 127.0.0.1 N/A N/A N/A serverPort getHost port clientF N/A d N/A clientF deferred N/A N/A N/A d addCallback N/A N/A N/A x N/A N/A serverWrapper deferred N/A N/A N/A d addCallback N/A N/A N/A x N/A N/A N/A serverPort stopListening N/A d N/A loopbackUNIX N/A N/A server client noisy N/A True N/A N/A Run session between server and client protocol instances over UNIX socket. N/A path N/A N/A tempfile mktemp twisted.internet reactor N/A f N/A N/A policies WrappingFactory N/A N/A protocol Factory N/A serverWrapper N/A _FireOnClose f server N/A N/A f noisy noisy N/A N/A f buildProtocol N/A N/A N/A addr N/A serverWrapper N/A serverPort N/A N/A reactor listenUNIX path f N/A clientF N/A LoopbackClientFactory client N/A N/A clientF noisy noisy N/A N/A N/A reactor connectUNIX path clientF N/A d N/A clientF deferred N/A N/A N/A d addCallback N/A N/A N/A x N/A N/A serverWrapper deferred N/A N/A N/A d addCallback N/A N/A N/A x N/A N/A N/A serverPort stopListening N/A d N/A