def __init__(self, store_server, socket_path, exports=None): with Pfx("%s.__init__(store_server=%s, socket_path=%r)", type(self), store_server, socket_path): UnixStreamServer.__init__(self, socket_path, _ClientConnectionHandler) self.store_server = store_server self.socket_path = socket_path self.exports = exports
def __init__(self, server_address, RequestHandlerClass, bind_and_activate=True): UnixStreamServer.__init__(self, server_address, RequestHandlerClass, bind_and_activate) self._connection_socket = None # type: socket.socket self._messages = []
def __init__(self, connection, requestHandler=FLSUnixRequestHandler, name='flscp-unix'): Thread.__init__(self, name=name) if os.path.exists(connection): # is a server running with this socket? os.unlink(connection) elif not os.path.exists(os.path.dirname(connection)): os.makedirs(os.path.dirname(connection)) UnixStreamServer.__init__(self, connection, requestHandler)