t.i.i.IReactorUNIX(Interface) : interface documentation

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

Known implementations: twisted.internet.posixbase.PosixReactorBase

UNIX socket methods.
Method connectUNIX Connect a client protocol to a UNIX socket.
Method listenUNIX Listen on a UNIX socket.
def connectUNIX(address, factory, timeout=30, checkPID=0): (source)
Connect a client protocol to a UNIX socket.
Parametersaddressa path to a unix socket on the filesystem.
factorya twisted.internet.protocol.ClientFactory instance
timeoutnumber of seconds to wait before assuming the connection has failed.
checkPIDif True, check for a pid file to verify that a server is listening. If address is a Linux abstract namespace path, this must be False.
ReturnsAn object which provides IConnector.
def listenUNIX(address, factory, backlog=50, mode=438, wantPID=0): (source)
Listen on a UNIX socket.
Parametersaddressa path to a unix socket on the filesystem.
factorya twisted.internet.protocol.Factory instance.
backlognumber of connections to allow in backlog.
modeThe mode (not umask) to set on the unix socket. See platform specific documentation for information about how this might affect connection attempts. (type: int )
wantPIDif True, create a pidfile for the socket. If address is a Linux abstract namespace path, this must be False.
ReturnsAn object which provides IListeningPort.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:17:34.