def listenUNIX(self, address, factory, backlog=50, mode=0o666, wantPID=0): assert unixEnabled, "UNIX support is not present" # Move this import back up to main level when twisted.internet.unix is # ported to Python 3: from twisted.internet import unix p = unix.Port(address, factory, backlog, mode, self, wantPID) p.startListening() return p
def listenUNIX(self, address, factory, backlog=50, mode=_unspecified, wantPID=0): """ @see: twisted.internet.interfaces.IReactorUNIX.listenUNIX """ assert unixEnabled, "UNIX support is not present" mode = self._checkMode('IReactorUNIX.listenUNIX', mode) p = unix.Port(address, factory, backlog, mode, self, wantPID) p.startListening() return p
# IReactorUNIX def connectUNIX(self, address, factory, timeout=30, checkPID=0): """@see: twisted.internet.interfaces.IReactorUNIX.connectUNIX """ assert unixEnabled, "UNIX support is not present" c = unix.Connector(address, factory, timeout, self, checkPID) c.connect() return c def listenUNIX(self, address, factory, backlog=50, mode=0666, wantPID=0): """ @see: twisted.internet.interfaces.IReactorUNIX.listenUNIX """ assert unixEnabled, "UNIX support is not present" p = unix.Port(address, factory, backlog, mode, self, wantPID) p.startListening() return p # IReactorUNIXDatagram def listenUNIXDatagram(self, address, protocol, maxPacketSize=8192, mode=0666): """ Connects a given L{DatagramProtocol} to the given path. EXPERIMENTAL.
def listenUNIX(self, address, factory, backlog=50, mode=0o666, wantPID=0): assert unixEnabled, "UNIX support is not present" p = unix.Port(address, factory, backlog, mode, self, wantPID) p.startListening() return p