No class docstring
Method __init__ Initialize with a numeric port to listen on.
Method __repr__ Undocumented
Method startListening Create and bind my socket, and begin listening on it.
Method connectionLost Cleans up the socket.
Class Method _fromListeningDescriptor Create a new Port based on an existing listening SOCK_STREAM socket.
Method _buildAddr Undocumented
Method _logConnectionLostMsg Log message for closing socket

Inherited from _SocketCloser (via Port):

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

Inherited from _SocketCloser (via Port):

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

Inherited from _SocketCloser (via Port):

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

Inherited from _SocketCloser (via Port):

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

Inherited from _SocketCloser (via Port):

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

Inherited from _SocketCloser (via Port):

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

Inherited from _SocketCloser (via Port):

Instance Variable _shouldShutdown Set to True if shutdown should be called before calling close on the underlying socket. (type: bool)
Method _closeSocket Undocumented
def __init__(self, fileName, factory, backlog=50, mode=438, reactor=None, wantPID=0): (source)

Initialize with a numeric port to listen on.

@classmethod
def _fromListeningDescriptor(cls, reactor, fd, factory): (source)

Create a new Port based on an existing listening SOCK_STREAM socket.

Arguments are the same as to Port.__init__, except where noted.

ParametersfdAn integer file descriptor associated with a listening socket. The socket must be in non-blocking mode. Any additional attributes desired, such as FD_CLOEXEC, must also be set already.
ReturnsA new instance of cls wrapping the socket given by fd.
def __repr__(self): (source)
Undocumented
def _buildAddr(self, name): (source)
Undocumented
def startListening(self): (source)

Create and bind my socket, and begin listening on it.

This is called on unserialization, and must be called after creating a server to begin listening on the specified port.

def _logConnectionLostMsg(self): (source)

Log message for closing socket

def connectionLost(self, reason): (source)
API Documentation for Twisted, generated by pydoctor at 2019-08-06 12:10:50.