def _handle_client(self, connection, address): """ Start the threaded WorldConnection and add it to the local list. """ LOG.info("Accepting client connection from " + str(address)) world_connection = WorldConnection(self, connection) with self.world_connections_lock: self.world_connections.append(world_connection) simple_thread(world_connection.handle_connection)
def start(self): LOG.info("Starting world server " + self.realm.name) self._listen_clients() simple_thread(self._handle_login_server_connection) self._accept_clients() self.shutdown_flag.set() self._stop_listen_clients() LOG.info("World server stopped.")
def start(self): LOG.info("Starting login server") self._start_listen() simple_thread(self._accept_realms) self._accept_clients() self.shutdown_flag.set() self._stop_listen() AccountSessionManager.delete_all_sessions() LOG.info("Login server stopped.")
def _handle_client(self, connection, address): """ Start another thread to securely handle the client connection. """ LOG.info("Accepting client connection from " + str(address)) login_connection = LoginConnection(self, connection) simple_thread(login_connection.handle_connection)
def _handle_realm(self, connection, address): """ Start another thread to securely handle the realm connection. """ realm_connection = RealmConnection(self, connection, address) simple_thread(realm_connection.handle_connection)