t.i.u.ConnectedDatagramPort(DatagramPort) : class documentation

Part of twisted.internet.unix View Source View In Hierarchy

Implements interfaces: twisted.internet.interfaces.IUNIXDatagramConnectedTransport

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 Returns UNIXAddress.

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 write(self, data): (source)

Write a datagram.

def getPeer(self): (source)

Returns UNIXAddress.

API Documentation for Twisted, generated by pydoctor at 2015-04-13 15:26:48.