twisted.internet.unix.ConnectedDatagramPort(DatagramPort)
class documentationtwisted.internet.unix
View Source
(View In Hierarchy)
A connected datagram UNIX socket.
Method | __init__ | Initialize with address to listen on. |
Method | startListening | Create and bind my socket, and begin listening on it. |
Method | connectionFailed | Called when a connection fails. Stop listening on the socket. |
Method | doRead | Called when my socket is ready for reading. |
Method | write | Write a datagram. |
Method | getPeer | Get the remote address of this connection. |
Inherited from _LogOwner (via DatagramPort, Port, BasePort, FileDescriptor):
Method | _getLogPrefix | Determine the log prefix to use for messages related to
applicationObject , which may or may not be an interfaces.ILoggingContext
provider. |
Inherited from _LogOwner (via DatagramPort, Port, BasePort, FileDescriptor):
Method | _getLogPrefix | Determine the log prefix to use for messages related to
applicationObject , which may or may not be an interfaces.ILoggingContext
provider. |
Inherited from _LogOwner (via DatagramPort, Port, BasePort, FileDescriptor):
Method | _getLogPrefix | Determine the log prefix to use for messages related to
applicationObject , which may or may not be an interfaces.ILoggingContext
provider. |
Inherited from _LogOwner (via DatagramPort, Port, BasePort, FileDescriptor):
Method | _getLogPrefix | Determine the log prefix to use for messages related to
applicationObject , which may or may not be an interfaces.ILoggingContext
provider. |
Inherited from _LogOwner (via DatagramPort, Port, BasePort, FileDescriptor):
Method | _getLogPrefix | Determine the log prefix to use for messages related to
applicationObject , which may or may not be an interfaces.ILoggingContext
provider. |
Inherited from _LogOwner (via DatagramPort, Port, BasePort, FileDescriptor):
Method | _getLogPrefix | Determine the log prefix to use for messages related to
applicationObject , which may or may not be an interfaces.ILoggingContext
provider. |
Inherited from _LogOwner (via DatagramPort, Port, BasePort, FileDescriptor):
Method | _getLogPrefix | Determine the log prefix to use for messages related to
applicationObject , which may or may not be an interfaces.ILoggingContext
provider. |
Initialize with address to listen on.
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.
Called when a connection fails. Stop listening on the socket.
Parameters | reason | Why the connection failed. (type: Failure ) |
Called when my socket is ready for reading.
Write a datagram.
Get the remote address of this connection.
Treat this method with caution. It is the unfortunate result of the CGI and Jabber standards, but should not be considered reliable for the usual host of reasons; port forwarding, proxying, firewalls, IP masquerading, etc.
Returns | An IAddress
provider. |