class twisted.internet.interfaces.IReactorUNIX(Interface): (source)
Known implementations: twisted.internet.posixbase.PosixReactorBase, twisted.internet.testing.MemoryReactor, twisted.internet.testing.RaisingMemoryReactor
UNIX socket methods.
Method | connectUNIX | Connect a client protocol to a UNIX socket. |
Method | listenUNIX | Listen on a UNIX socket. |
Connect a client protocol to a UNIX socket.
Parameters | address | a path to a unix socket on the filesystem. (type: str ) |
factory | a twisted.internet.protocol.ClientFactory instance (type: ClientFactory ) | |
timeout | number of seconds to wait before assuming the connection has failed. (type: float ) | |
checkPID | if 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 ) | |
Returns | An object which provides IConnector . (type: IConnector ) |
Listen on a UNIX socket.
Parameters | address | a path to a unix socket on the filesystem. (type: str ) |
factory | a twisted.internet.protocol.Factory instance. (type: Factory ) | |
backlog | number of connections to allow in backlog. (type: int ) | |
mode | The mode (not umask) to set on the unix socket. See platform specific documentation for information about how this might affect connection attempts. (type: int ) | |
wantPID | if True, create a pidfile for the socket. If address is a Linux abstract namespace path, this must be False . (type: bool ) | |
Returns | An object which provides IListeningPort . (type: IListeningPort ) |