class Port(_SocketCloser, _LogOwner): (source)
Implements interfaces: twisted.internet.interfaces.IListeningPort
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:
| Method | _getLogPrefix |
Determine the log prefix to use for messages related to applicationObject, which may or may not be an interfaces.ILoggingContext provider. |
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.