class documentation

Undocumented

Method __init__ Undocumented
Method __repr__ Undocumented
Method cbAccept Undocumented
Method connectionLost Cleans up the socket.
Method doAccept Undocumented
Method getHost Returns an IPv4Address or IPv6Address.
Method handleAccept Undocumented
Method logPrefix Returns the name of my class, to prefix log entries with.
Method loseConnection Stop accepting connections on this port.
Method startListening Start listening on this port.
Class Variable sessionno Undocumented
Instance Variable addressFamily Undocumented
Instance Variable addrLen Undocumented
Instance Variable backlog Undocumented
Instance Variable connected Undocumented
Instance Variable deferred Undocumented
Instance Variable disconnected Undocumented
Instance Variable disconnecting Undocumented
Instance Variable factory Undocumented
Instance Variable getFileHandle Undocumented
Instance Variable interface Undocumented
Instance Variable port Undocumented
Instance Variable reactor Undocumented
Instance Variable socket Undocumented
Method _logConnectionLostMsg Log message for closing port
Class Variable _type Undocumented
Instance Variable _addressType Undocumented
Instance Variable _realPortNumber Undocumented

Inherited from _SocketCloser:

Method _closeSocket Undocumented
Instance Variable _shouldShutdown Set to True if shutdown should be called before calling close on the underlying socket.

Inherited from _LogOwner (via _SocketCloser):

Method _getLogPrefix Determine the log prefix to use for messages related to applicationObject, which may or may not be an interfaces.ILoggingContext provider.
def __init__(self, port, factory, backlog=50, interface='', reactor=None): (source)

Undocumented

def __repr__(self) -> str: (source)

Undocumented

def cbAccept(self, rc, data, evt): (source)

Undocumented

def connectionLost(self, reason): (source)

Cleans up the socket.

def doAccept(self): (source)

Undocumented

def getHost(self): (source)

Returns an IPv4Address or IPv6Address.

This indicates the server's address.

def handleAccept(self, rc, evt): (source)

Undocumented

def logPrefix(self): (source)

Returns the name of my class, to prefix log entries with.

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 startListening(self): (source)

Start listening on this port.

Raises
CannotListenErrorIf it cannot listen on this port (e.g., it is a TCP port and it cannot bind to the required port number).
sessionno: int = (source)

Undocumented

addressFamily = (source)

Undocumented

Undocumented

Undocumented

connected: bool = (source)

Undocumented

deferred = (source)

Undocumented

disconnected: bool = (source)

Undocumented

disconnecting: bool = (source)

Undocumented

Undocumented

getFileHandle = (source)

Undocumented

interface = (source)

Undocumented

Undocumented

Undocumented

Undocumented

def _logConnectionLostMsg(self): (source)

Log message for closing port

Undocumented

_addressType = (source)

Undocumented

_realPortNumber: Optional[int] = (source)

Undocumented