module documentation

UNIX socket support for Twisted.

End users shouldn't use this module directly - use the reactor APIs instead.

Maintainer: Itamar Shtull-Trauring

Class Client A client for Unix sockets.
Class ConnectedDatagramPort A connected datagram UNIX socket.
Class Connector Undocumented
Class DatagramPort Datagram UNIX port, listening for packets.
Class Port No class docstring; 0/4 instance variable, 2/6 methods, 1/1 class method documented
Class Server No class docstring; 0/2 instance variable, 0/3 method, 1/1 class method documented
Class _SendmsgMixin Mixin for stream-oriented UNIX transports which uses sendmsg and recvmsg to offer additional functionality, such as copying file descriptors into other processes.
Class _UNIXPort No class docstring; 1/1 method documented
Class _UnsupportedSendmsgMixin Behaviorless placeholder used when twisted.python.sendmsg is not available, preventing IUNIXTransport from being supported.
Function _ancillaryDescriptor Pack an integer into an ancillary data structure suitable for use with sendmsg.sendmsg.
Function _inFilesystemNamespace Determine whether the given unix socket path is in a filesystem namespace.
def _ancillaryDescriptor(fd): (source)

Pack an integer into an ancillary data structure suitable for use with sendmsg.sendmsg.

def _inFilesystemNamespace(path): (source)

Determine whether the given unix socket path is in a filesystem namespace.

While most PF_UNIX sockets are entries in the filesystem, Linux 2.2 and above support PF_UNIX sockets in an "abstract namespace" that does not correspond to any path. This function returns True if the given socket path is stored in the filesystem and False if the path is in this abstract namespace.