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.
def __init__(self, addr, proto, maxPacketSize=8192, mode=438, bindAddress=None, reactor=None): (source)

Initialize with address to listen on.

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 connectionFailed(self, reason): (source)

Called when a connection fails. Stop listening on the socket.

ParametersreasonWhy the connection failed. (type: Failure)
def doRead(self): (source)

Called when my socket is ready for reading.

def getPeer(self): (source)

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.

ReturnsAn IAddress provider.
API Documentation for Twisted, generated by pydoctor at 2015-09-04 15:29:41.