def setup(self): """Add the client to the current client lists""" SAPNIServerHandler.setup(self) self.server.clients_count += 1 self.server.clients[self.client_address].id = self.server.clients_count self.server.clients[self.client_address].address = self.client_address[0] self.server.clients[self.client_address].connected_on = datetime.today()
def __init__(self, request, client_address, server): """Initialization""" self.config = server.config client_ip, client_port = client_address server_ip, server_port = server.server_address self.session = server.session_manager.get_session("saprouter", client_ip, client_port, server_ip, server_port) SAPNIServerHandler.__init__(self, request, client_address, server)
def __init__(self, request, client_address, server): self.hostname = server.options.server_hostname self.client = server.options.server_client self.sid = server.options.server_sid self.session_title = server.options.server_session_title SAPNIServerHandler.__init__(self, request, client_address, server)
def __init__(self, request, client_address, server): self.routed = False SAPNIServerHandler.__init__(self, request, client_address, server)
def finish(self): """Closes the connection and deletes the client from the clients list""" self.close() SAPNIServerHandler.finish(self)