interface documentation

class twisted.internet.interfaces.IReactorUNIX(Interface): (source)

Known implementations: twisted.internet.posixbase.PosixReactorBase, twisted.internet.testing.MemoryReactor, twisted.internet.testing.RaisingMemoryReactor

View In Hierarchy

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, checkPID): (source)

Connect a client protocol to a UNIX socket.

Parametersaddressa path to a unix socket on the filesystem. (type: str)
factorya twisted.internet.protocol.ClientFactory instance (type: ClientFactory)
timeoutnumber of seconds to wait before assuming the connection has failed. (type: float)
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. (type: bool)
ReturnsAn object which provides IConnector. (type: IConnector)
def listenUNIX(address, factory, backlog, mode, wantPID): (source)

Listen on a UNIX socket.

Parametersaddressa path to a unix socket on the filesystem. (type: str)
factorya twisted.internet.protocol.Factory instance. (type: Factory)
backlognumber of connections to allow in backlog. (type: int)
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. (type: bool)
ReturnsAn object which provides IListeningPort. (type: IListeningPort)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.