twisted.internet.unix.Port(_UNIXPort, tcp.Port) class documentationtwisted.internet.unix
          View Source
          (View In Hierarchy)
        
      | 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 | 
Initialize with a numeric port to listen on.
Create a new Port based on an 
existing listening SOCK_STREAM socket.
Arguments are the same as to Port.__init__,
except where noted.
| Parameters | fd | An 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. | 
| Returns | A new instance of cls wrapping the socket given by 
fd. | |
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.
Cleans up the socket.