Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyc


5Nc@sdZddlZddlmZddlmZmZmZddlm	Z	m
Z
mZdd%dYZdefd	YZ
d
e
fdYZdd&d
YZde
fdYZdefdYZdd'dYZeje
jZejdefdYZdejfdYZejee	je	jdejfdYZejee	je	jdefdYZdd(dYZdefdYZ d e fd!YZ!d"d)d#YZ"dddd$ddd"dddd dgZ#dS(*s
Standard implementations of Twisted protocol-related interfaces.

Start here if you are looking to write a new protocol implementation for
Twisted.  The Protocol class contains some introductory material.

Maintainer: Itamar Shtull-Trauring
iN(t
implements(tlogtfailuret
components(t
interfacesterrortdefertFactorycBsieZdZeejejdZdZ	e
ZdZdZ
dZdZdZdZRS(	s
    This is a factory which produces protocols.

    By default, buildProtocol will create a protocol of the class given in
    self.protocol.
    icCs
|jjS(s9
        Describe this factory for log messages.
        (t	__class__t__name__(tself((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt	logPrefix&scCsG|js3|jr&tjd|n|jn|jd|_dS(scMake sure startFactory is called.

        Users should not call this function themselves!
        sStarting factory %riN(tnumPortstnoisyRtmsgtstartFactory(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytdoStart-s
		
cCsZ|jdkrdS|jd|_|jsV|jrItjd|n|jndS(sbMake sure stopFactory is called.

        Users should not call this function themselves!
        iNisStopping factory %r(RR
RRtstopFactory(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytdoStop8s		cCsdS(spThis will be called before I begin listening on a Port or Connector.

        It will only be called once, even if the factory is connected
        to multiple ports.

        This can be used to perform 'unserialization' tasks that
        are best put off until things are actually running, such
        as connecting to a database, opening files, etcetera.
        N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRGscCsdS(s}This will be called before I stop listening on all Ports/Connectors.

        This can be overridden to perform 'shutdown' tasks such as disconnecting
        database connections, closing files, etc.

        It will be called, for example, before an application shuts down,
        if it was connected to a port. User code should not call this function
        directly.
        N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRRscCs|j}||_|S(svCreate an instance of a subclass of Protocol.

        The returned instance will handle input on an incoming server
        connection, and an attribute "factory" pointing to the creating
        factory.

        Override this method to alter how Protocol instances get created.

        @param addr: an object implementing L{twisted.internet.interfaces.IAddress}
        (tprotocoltfactory(R
taddrtp((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt
buildProtocol]s	N(R	t
__module__t__doc__RRtIProtocolFactorytILoggingContexttNoneRRtTrueR
RRRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRs					t
ClientFactorycBs)eZdZdZdZdZRS(sxA Protocol factory for clients.

    This can be used together with the various connectXXX methods in
    reactors.
    cCsdS(sCalled when a connection has been started.

        You can call connector.stopConnecting() to stop the connection attempt.

        @param connector: a Connector object.
        N((R
t	connector((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytstartedConnectingtscCsdS(sCalled when a connection has failed to connect.

        It may be useful to call connector.connect() - this will reconnect.

        @type reason: L{twisted.python.failure.Failure}
        N((R
Rtreason((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytclientConnectionFailed|scCsdS(sCalled when an established connection is lost.

        It may be useful to call connector.connect() - this will reconnect.

        @type reason: L{twisted.python.failure.Failure}
        N((R
RR!((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytclientConnectionLosts(R	RRR R"R#(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRms		t_InstanceFactorycBsGeZdZeZdZdZdZdZ	dZ
dZRS(sP
    Factory used by ClientCreator.

    @ivar deferred: The L{Deferred} which represents this connection attempt and
        which will be fired when it succeeds or fails.

    @ivar pending: After a connection attempt succeeds or fails, a delayed call
        which will fire the L{Deferred} representing this connection attempt.
    cCs||_||_||_dS(N(treactortinstancetdeferred(R
R%R&R'((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt__init__s		cCsd|jfS(Ns<ClientCreator factory: %r>(R&(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt__repr__scCs:|jjd|j|jj|j|_d|_|jS(s
        Return the pre-constructed protocol instance and arrange to fire the
        waiting L{Deferred} to indicate success establishing the connection.
        iN(R%t	callLatertfireR'tcallbackR&tpendingR(R
R((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRs	!	cCs4|jjd|j|jj||_d|_dS(s
        Arrange to fire the waiting L{Deferred} with the given failure to
        indicate the connection could not be established.
        iN(R%R*R+R'terrbackR-R(R
RR!((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR"s	cCsd|_||dS(so
        Clear C{self.pending} to avoid a reference cycle and then invoke func
        with the value.
        N(RR-(R
tfunctvalue((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR+s	N(R	RRtFalseR
RR-R(R)RR"R+(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR$s					
t
ClientCreatorcBsMeZdZdZdZdddZdedZdddZ	RS(s
    Client connections that do not require a factory.

    The various connect* methods create a protocol instance using the given
    protocol class and arguments, and connect it, returning a Deferred of the
    resulting protocol instance.

    Useful for cases when we don't really need a factory.  Mainly this
    is when there is no shared state between protocol instances, and no need
    to reconnect.

    The C{connectTCP}, C{connectUNIX}, and C{connectSSL} methods each return a
    L{Deferred} which will fire with an instance of the protocol class passed to
    L{ClientCreator.__init__}.  These Deferred can be cancelled to abort the
    connection attempt (in a very unlikely case, cancelling the Deferred may not
    prevent the protocol from being instantiated and connected to a transport;
    if this happens, it will be disconnected immediately afterwards and the
    Deferred will still errback with L{CancelledError}).
    cOs(||_||_||_||_dS(N(R%t
protocolClasstargstkwargs(R
R%R3R4R5((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR(s			csafd}tj|}t|j|j|j|j||d|||S(s3
        Initiate a connection attempt.

        @param method: A callable which will actually start the connection
            attempt.  For example, C{reactor.connectTCP}.

        @param *args: Positional arguments to pass to C{method}, excluding the
            factory.

        @param **kwargs: Keyword arguments to pass to C{method}.

        @return: A L{Deferred} which fires with an instance of the protocol
            class passed to this L{ClientCreator}'s initializer or fails if the
            connection cannot be set up for some reason.
        cs-jjdk	r)jjndS(N(t
disconnectR-Rtcancel(R'(Rtf(s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt
cancelConnects
R(RtDeferredR$R%R3R4R5(R
tmethodR4R5R9td((R8Rs=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt_connects$icCs%|j|jj||d|d|S(s
        Connect to a TCP server.

        The parameters are all the same as to L{IReactorTCP.connectTCP} except
        that the factory parameter is omitted.

        @return: A L{Deferred} which fires with an instance of the protocol
            class passed to this L{ClientCreator}'s initializer or fails if the
            connection cannot be set up for some reason.
        ttimeouttbindAddress(R=R%t
connectTCP(R
thosttportR>R?((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR@scCs"|j|jj|d|d|S(s
        Connect to a Unix socket.

        The parameters are all the same as to L{IReactorUNIX.connectUNIX} except
        that the factory parameter is omitted.

        @return: A L{Deferred} which fires with an instance of the protocol
            class passed to this L{ClientCreator}'s initializer or fails if the
            connection cannot be set up for some reason.
        R>tcheckPID(R=R%tconnectUNIX(R
taddressR>RC((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRDsc
Cs+|j|jj||d|d|d|S(s
        Connect to an SSL server.

        The parameters are all the same as to L{IReactorSSL.connectSSL} except
        that the factory parameter is omitted.

        @return: A L{Deferred} which fires with an instance of the protocol
            class passed to this L{ClientCreator}'s initializer or fails if the
            connection cannot be set up for some reason.
        tcontextFactoryR>R?(R=R%t
connectSSL(R
RARBRFR>R?((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRGsN(
R	RRR(R=RR@R1RDRG(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR2s		tReconnectingClientFactorycBseZdZdZdZdZdZeZdZd
Z
d
Zd
Zd
Z
dZdZdZd
d	Zd
ZdZdZRS(s
    Factory which auto-reconnects clients with an exponential back-off.

    Note that clients should call my resetDelay method after they have
    connected successfully.

    @ivar maxDelay: Maximum number of seconds between connection attempts.
    @ivar initialDelay: Delay for the first reconnection attempt.
    @ivar factor: A multiplicitive factor by which the delay grows
    @ivar jitter: Percentage of randomness to introduce into the delay length
        to prevent stampeding.
    @ivar clock: The clock used to schedule reconnection. It's mainly useful to
        be parametrized in tests. If the factory is serialized, this attribute
        will not be serialized, and the default value (the reactor) will be
        restored when deserialized.
    @type clock: L{IReactorTime}
    @ivar maxRetries: Maximum number of consecutive unsuccessful connection
        attempts, after which no further connection attempts will be made. If
        this is not explicitly set, no maximum is applied.
    ig?giW
@gȉ4؟?iicCs#|jr||_|jndS(N(tcontinueTryingRtretry(R
RR!((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR"Ws		cCs#|jr||_|jndS(N(RIRRJ(R
Rt
unused_reason((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR#]s		csjs-jr)tjdfndSdkrcjdkrWtdqcjnjd7_jdk	rjjkrjrtjdjfndSt	j
jj_
j
r
tjj
j
j
_
njr0tjdj
fnfd}jdkrmdd	lm}|_njjj
|_dS(
sL
        Have this connector connect again, after a suitable delay.
        s!Abandoning %s on explicit requestNsno connector to retryisAbandoning %s after %d retries.s%s will retry in %d secondscsd_jdS(N(Rt_callIDtconnect((RR
(s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytreconnectors	i(R%(RIR
RRRRt
ValueErrortretriest
maxRetriestmintdelaytfactortmaxDelaytjittertrandomt
normalvariatetclockttwisted.internetR%R*RL(R
RRNR%((R
Rs=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRJcs2		!				cCsc|jr"|jjd|_nd|_|jr_y|jjWq_tjk
r[q_XndS(sE
        Put a stop to any attempt to reconnect in progress.
        iN(RLR7RRIRtstopConnectingRtNotConnectingError(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt
stopTryings	
		cCs+|j|_d|_d|_d|_dS(st
        Call this method after a successful connection: it resets the delay and
        the retry counter.
        iiN(tinitialDelayRSRPRRLRI(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt
resetDelays		cCsL|jj}x6ddddddgD]}||kr(||=q(q(W|S(s-
        Remove all of the state which is mutated by connection attempts and
        failures, returning just the state which describes how reconnections
        should be attempted.  This will make the unserialized instance
        behave just as this one did when it was first instantiated.
        RRPRSRIRLRY(t__dict__tcopy(R
tstatetkey((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt__getstate__sN(R	RRRUR^RTRVRSRPRRQRLRRYRIR"R#RJR]R_Rd(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRH-s$		'		t
ServerFactorycBseZdZRS(sUSubclass this to indicate that your protocol.Factory is only usable for servers.
    (R	RR(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRestBaseProtocolcBs,eZdZdZdZdZdZRS(s
    This is the abstract superclass of all protocols.

    Some methods have helpful default implementations here so that they can
    easily be shared, but otherwise the direct subclasses of this class are more
    interesting, L{Protocol} and L{ProcessProtocol}.
    icCs d|_||_|jdS(sMake a connection to a transport and a server.

        This sets the 'transport' attribute of this Protocol, and calls the
        connectionMade() callback.
        iN(t	connectedt	transporttconnectionMade(R
Rh((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytmakeConnections		cCsdS(sCalled when a connection is made.

        This may be considered the initializer of the protocol, because
        it is called when the connection is completed.  For clients,
        this is called once the connection to the server has been
        established; for servers, this is called after an accept() call
        stops blocking and a socket has been received.  If you need to
        send any greeting or initial message, do it here.
        N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRisN(R	RRRgRRhRjRi(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRfs
	
tProtocolcBs?eZdZeejejdZdZe	dZ
RS(s
    This is the base class for streaming connection-oriented protocols.

    If you are going to write a new connection-oriented protocol for Twisted,
    start here.  Any protocol implementation, either client or server, should
    be a subclass of this class.

    The API is quite simple.  Implement L{dataReceived} to handle both
    event-based and synchronous input; output can be sent through the
    'transport' attribute, which is to be an instance that implements
    L{twisted.internet.interfaces.ITransport}.  Override C{connectionLost} to be
    notified when the connection ends.

    Some subclasses exist already to help you write common types of protocols:
    see the L{twisted.protocols.basic} module for a few of them.
    cCs
|jjS(s~
        Return a prefix matching the class name, to identify log messages
        related to this protocol instance.
        (RR	(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRscCsdS(s=Called whenever data is received.

        Use this method to translate to a higher-level message.  Usually, some
        callback will be made upon the receipt of each complete protocol
        message.

        @param data: a string of indeterminate length.  Please keep in mind
            that you will probably need to buffer some data, as partial
            (or multiple) protocol messages may be received!  I recommend
            that unit tests for protocols call through to this method with
            differing chunk sizes, down to one byte at a time.
        N((R
tdata((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytdataReceivedscCsdS(sCalled when the connection is shut down.

        Clear any circular references here, and any external references
        to this Protocol.  The connection has been closed.

        @type reason: L{twisted.python.failure.Failure}
        N((R
R!((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytconnectionLosts(R	RRRRt	IProtocolRRRmtconnectionDoneRn(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRks
		tProtocolToConsumerAdaptercBs0eZeejdZdZdZRS(cCs|jj|dS(N(toriginalRm(R
Rl((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytwritescCsdS(N((R
tproducert	streaming((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytregisterProducerscCsdS(N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytunregisterProducers(R	RRRt	IConsumerRsRvRw(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRqs
		tConsumerToProtocolAdaptercBs9eZeejdZdZdZdZRS(cCs|jj|dS(N(RrRs(R
Rl((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRm$scCsdS(N((R
R!((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRn'scCsdS(N((R
Rh((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRj*scCsdS(N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRi-s(	R	RRRRoRmRnRjRi(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRy!s

			tProcessProtocolcBsleZdZeejdZdZdZdZ	dZ
dZdZdZ
d	ZRS(
s
    Base process protocol implementation which does simple dispatching for
    stdin, stdout, and stderr file descriptors.
    cCs<|dkr|j|n|dkr8|j|ndS(Nii(toutReceivedterrReceived(R
tchildFDRl((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytchildDataReceived:scCsdS(s5
        Some data was received from stdout.
        N((R
Rl((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR{AscCsdS(s5
        Some data was received from stderr.
        N((R
Rl((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR|GscCsO|dkr|jn2|dkr2|jn|dkrK|jndS(Niii(tinConnectionLosttoutConnectionLostterrConnectionLost(R
R}((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytchildConnectionLostMs

cCsdS(s;
        This will be called when stdin is closed.
        N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRVscCsdS(s<
        This will be called when stdout is closed.
        N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR\scCsdS(s<
        This will be called when stderr is closed.
        N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRbscCsdS(sy
        This will be called when the subprocess exits.

        @type reason: L{twisted.python.failure.Failure}
        N((R
R!((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt
processExitedhscCsdS(s
        This will be called when the subprocess is finished.

        @type reason: L{twisted.python.failure.Failure}
        N((R
R!((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytprocessEndedps(R	RRRRtIProcessProtocolR~R{R|RRRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRz3s
									tAbstractDatagramProtocolcBs_eZdZd	ZdZeZdZdZ	dZ
dZdZdZ
dZRS(
sV
    Abstract protocol for datagram-oriented transports, e.g. IP, ICMP, ARP, UDP.
    icCs|jj}d|d<|S(NRh(R`RaR(R
R<((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRds
cCsG|js3|jr&tjd|n|jn|jd|_dS(swMake sure startProtocol is called.

        This will be called by makeConnection(), users should not call it.
        sStarting protocol %siN(RR
RRt
startProtocol(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRs
		
cCse|jdkst|jd|_d|_|jsa|jrTtjd|n|jndS(snMake sure stopProtocol is called.

        This will be called by the port, users should not call it.
        iisStopping protocol %sN(RtAssertionErrorRRhR
RRtstopProtocol(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRs			cCsdS(sCalled when a transport is connected to this protocol.

        Will only be called once, even if multiple ports are connected.
        N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRscCsdS(sxCalled when the transport is disconnected.

        Will only be called once, after all ports are disconnected.
        N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRscCs,|jdkst||_|jdS(sMake a connection to a transport and a server.

        This sets the 'transport' attribute of this DatagramProtocol, and calls the
        doStart() callback.
        N(RhRRR(R
Rh((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRjs	cCsdS(sCalled when a datagram is received.

        @param datagram: the string received from the transport.
        @param addr: tuple of source of datagram.
        N((R
tdatagramR((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytdatagramReceivedsN(R	RRRRhRRR
RdRRRRRjR(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRys			
			
tDatagramProtocolcBs-eZdZeejdZdZRS(s 
    Protocol for datagram-oriented transport, e.g. UDP.

    @type transport: C{NoneType} or
        L{IUDPTransport<twisted.internet.interfaces.IUDPTransport>} provider
    @ivar transport: The transport with which this protocol is associated,
        if it is associated with one.
    cCs
|jjS(s~
        Return a prefix matching the class name, to identify log messages
        related to this protocol instance.
        (RR	(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRscCsdS(sCalled due to error from write in connected mode.

        Note this is a result of ICMP message generated by *previous*
        write.
        N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytconnectionRefuseds(R	RRRRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRs
	tConnectedDatagramProtocolcBs eZdZdZdZRS(sZProtocol for connected datagram-oriented transport.

    No longer necessary for UDP.
    cCsdS(snCalled when a datagram is received.

        @param datagram: the string received from the transport.
        N((R
R((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRscCsdS(s`Called if connecting failed.

        Usually this will be due to a DNS lookup failure.
        N((R
R((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytconnectionFaileds(R	RRRR(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRs	tFileWrappercBseZdZeejdZdZdZ	dZ
dZdZdZ
dZdZdZdZd	Zd
ZdZdZd
ZdZdZRS(sA 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.
    icCs
||_dS(N(tfile(R
R((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR(scCs,y|jj|Wn|jnXdS(N(RRsthandleException(R
Rl((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRsscCs|jr|jjndS(N(RttresumeProducing(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt_checkProducers	cCs)||_||_|s%|jndS(s%From abstract.FileDescriptor
        N(RttstreamingProducerR(R
RtRu((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRv
s		cCs
d|_dS(N(RRt(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRwscCs|j|jdS(N(RwtloseConnection(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt
stopConsumings
cCs|jdj|dS(Nt(Rstjoin(R
tiovec((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt
writeSequencescCsBd|_y|jjWn!ttfk
r=|jnXdS(Ni(tclosedRtclosetIOErrortOSErrorR(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRs
	cCsdS(NR(sfilesfile((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytgetPeer#scCsdS(NR((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytgetHost'scCsdS(N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR+scCsdS(N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyR.scCsdS(N((R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pytpauseProducing2scCs|jdS(N(R(R
((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt
stopProducing6sN(R	RRRRt
ITransportRt
disconnectingRRtRR(RsRRvRwRRRRRRRRR(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyRs(
													Rp(((((($RRWtzope.interfaceRttwisted.pythonRRRRZRRRRRR$R2RHReRftFailuretConnectionDoneRptcleanFailureRktAdapterRqtregisterAdapterRoRxRyRzRRRRt__all__(((s=/usr/lib/python2.7/dist-packages/twisted/internet/protocol.pyt<module>s:W 7i 
3

FDN