Exemple #1
0
        private void AcceptCallback(IAsyncResult result)
        {
            Console.WriteLine("BN: Client connected...");

            Socket clientSocket = m_socket.EndAccept(result);

            BnetClient client = new BnetClient(clientSocket);

            Clients.Add(client);

            new Thread(() => client.Run()).Start();

            BeginAccept();
        }
Exemple #2
0
        private void AcceptCallback(IAsyncResult result)
        {
            Console.WriteLine("BN: Client connected...");

            Socket clientSocket = m_socket.EndAccept(result);

            BnetClient client = new BnetClient(clientSocket);

            Clients.Add(client);

            new Thread(() => client.Run()).Start();

            BeginAccept();
        }