t.i.i.t.Port(styles.Ephemeral, _SocketCloser) : class documentation

Part of twisted.internet.iocpreactor.tcp View Source View In Hierarchy

Implements interfaces: twisted.internet.interfaces.IListeningPort

No class docstring
Method __init__ Undocumented
Method __repr__ Undocumented
Method startListening Start listening on this port.
Method loseConnection Stop accepting connections on this port.
Method connectionLost Cleans up the socket.
Method logPrefix Returns the name of my class, to prefix log entries with.
Method getHost Returns an IPv4Address.
Method cbAccept Undocumented
Method handleAccept Undocumented
Method doAccept Undocumented

Inherited from Ephemeral:

Method __getstate__ Undocumented
Method __setstate__ Undocumented

Inherited from _SocketCloser:

Method _closeSocket Undocumented
def __init__(self, port, factory, backlog=50, interface='', reactor=None): (source)
Undocumented
def __repr__(self): (source)
Undocumented
def startListening(self): (source)
Start listening on this port.
RaisesCannotListenErrorIf it cannot listen on this port (e.g., it is a TCP port and it cannot bind to the required port number).
def loseConnection(self, connDone=failure.Failure(main.CONNECTION_DONE)): (source)

Stop accepting connections on this port.

This will shut down my socket and call self.connectionLost(). It returns a deferred which will fire successfully when the port is actually closed.
def connectionLost(self, reason): (source)
Cleans up the socket.
def logPrefix(self): (source)
Returns the name of my class, to prefix log entries with.
def getHost(self): (source)

Returns an IPv4Address.

This indicates the server's address.
def cbAccept(self, rc, bytes, evt): (source)
Undocumented
def handleAccept(self, rc, evt): (source)
Undocumented
def doAccept(self): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:02:37.