class documentation
class Port(_SocketCloser, _LogOwner): (source)
Constructor: Port(port, factory, backlog, interface, reactor)
Implements interfaces: twisted.internet.interfaces.IListeningPort
Undocumented
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | cb |
Undocumented |
Method | connection |
Cleans up the socket. |
Method | do |
Undocumented |
Method | get |
Returns an IPv4Address or IPv6Address. |
Method | handle |
Undocumented |
Method | log |
Returns the name of my class, to prefix log entries with. |
Method | lose |
Stop accepting connections on this port. |
Method | start |
Start listening on this port. |
Class Variable | sessionno |
Undocumented |
Instance Variable | address |
Undocumented |
Instance Variable | addr |
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 | get |
Undocumented |
Instance Variable | interface |
Undocumented |
Instance Variable | port |
Undocumented |
Instance Variable | reactor |
Undocumented |
Instance Variable | socket |
Undocumented |
Method | _log |
Log message for closing port |
Class Variable | _type |
Undocumented |
Instance Variable | _address |
Undocumented |
Instance Variable | _real |
Undocumented |
Inherited from _SocketCloser
:
Method | _close |
Undocumented |
Instance Variable | _should |
Set to True if shutdown should be called before calling close on the underlying socket. |
Inherited from _LogOwner
(via _SocketCloser
):
Method | _get |
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.