t.i.e._WrappingProtocol(Protocol) : class documentation

Part of twisted.internet.endpoints View Source View In Hierarchy

Wrap another protocol in order to notify my user when a connection has been made.
Instance Variables_connectedDeferredThe Deferred that will callback with the wrappedProtocol when it is connected.
_wrappedProtocolAn IProtocol provider that will be connected.
Method __init__
Method connectionMade Connect the self._wrappedProtocol to our self.transport and callback self._connectedDeferred with the self._wrappedProtocol
Method dataReceived Proxy dataReceived calls to our self._wrappedProtocol
Method connectionLost Proxy connectionLost calls to our self._wrappedProtocol
Method readConnectionLost Proxy IHalfCloseableProtocol.readConnectionLost to our self._wrappedProtocol
Method writeConnectionLost Proxy IHalfCloseableProtocol.writeConnectionLost to our self._wrappedProtocol

Inherited from BaseProtocol (via Protocol):

Method makeConnection Make a connection to a transport and a server.
def __init__(self, connectedDeferred, wrappedProtocol): (source)
ParametersconnectedDeferredThe Deferred that will callback with the wrappedProtocol when it is connected.
wrappedProtocolAn IProtocol provider that will be connected.
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 connectionLost(self, reason): (source)
Proxy connectionLost calls to our self._wrappedProtocol
def readConnectionLost(self): (source)
Proxy IHalfCloseableProtocol.readConnectionLost to our self._wrappedProtocol
def writeConnectionLost(self): (source)
Proxy IHalfCloseableProtocol.writeConnectionLost to our self._wrappedProtocol
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:27:37.