コード例 #1
0
ファイル: world_server.py プロジェクト: Shgck/DuratorEmu
    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)
コード例 #2
0
ファイル: world_server.py プロジェクト: Shgck/DuratorEmu
    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.")
コード例 #3
0
ファイル: login_server.py プロジェクト: Shgck/DuratorEmu
    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.")
コード例 #4
0
ファイル: login_server.py プロジェクト: Shgck/DuratorEmu
 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)
コード例 #5
0
ファイル: login_server.py プロジェクト: Shgck/DuratorEmu
 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)