class documentation

class _WrappingProtocol(Protocol): (source)

View In Hierarchy

Wrap another protocol in order to notify my user when a connection has been made.
Method __init__
Method connection​Lost Proxy connectionLost calls to our self._wrappedProtocol
Method connection​Made Connect the self._wrappedProtocol to our self.transport and callback self._connectedDeferred with the self._wrappedProtocol
Method data​Received Proxy dataReceived calls to our self._wrappedProtocol
Method file​Descriptor​Received Proxy fileDescriptorReceived calls to our self._wrappedProtocol
Method handshake​Completed Proxy interfaces.IHandshakeListener to our self._wrappedProtocol.
Method log​Prefix Transparently pass through the wrapped protocol's log prefix.
Method read​Connection​Lost Proxy IHalfCloseableProtocol.readConnectionLost to our self._wrappedProtocol
Method write​Connection​Lost Proxy IHalfCloseableProtocol.writeConnectionLost to our self._wrappedProtocol
Instance Variable _connected​Deferred Undocumented
Instance Variable _wrapped​Protocol Undocumented

Inherited from Protocol:

Class Variable factory Undocumented

Inherited from BaseProtocol (via Protocol):

Method make​Connection Make a connection to a transport and a server.
Instance Variable connected Undocumented
Instance Variable transport Undocumented
def __init__(self, connectedDeferred, wrappedProtocol): (source)
Parameters
connected​DeferredThe Deferred that will callback with the wrappedProtocol when it is connected.
wrapped​ProtocolAn IProtocol provider that will be connected.
def connectionLost(self, reason): (source)
Proxy connectionLost calls to our self._wrappedProtocol
def connectionMade(self): (source)
Connect the self._wrappedProtocol to our self.transport and callback self._connectedDeferred with the self._wrappedProtocol
def dataReceived(self, data): (source)
Proxy dataReceived calls to our self._wrappedProtocol
def fileDescriptorReceived(self, descriptor): (source)
Proxy fileDescriptorReceived calls to our self._wrappedProtocol
def handshakeCompleted(self): (source)
Proxy interfaces.IHandshakeListener to our self._wrappedProtocol.
def logPrefix(self): (source)
Transparently pass through the wrapped protocol's log prefix.
def readConnectionLost(self): (source)
Proxy IHalfCloseableProtocol.readConnectionLost to our self._wrappedProtocol
def writeConnectionLost(self): (source)
Proxy IHalfCloseableProtocol.writeConnectionLost to our self._wrappedProtocol
_connectedDeferred = (source)

Undocumented

_wrappedProtocol = (source)

Undocumented