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.
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.
modemode to set on the unix socket. This parameter is deprecated. Permissions should be set on the directory which contains the UNIX socket.
wantPIDif True, create a pidfile for the socket.
ReturnsAn object which provides IListeningPort.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:07:41.