Exemplo n.º 1
0
        private async void WaitForClients()
        {
            while (true)
            {
                TcpClient client = await _listener.AcceptTcpClientAsync();

                Log.Info($"Received connection request from: {client.Client.RemoteEndPoint}");

                ServerThread st = new ServerThread(_packetHandler);
                st.ReadData(client, this);
            }
        }
Exemplo n.º 2
0
        private void VerifyClient(TcpClient clientSocket)
        {
            ServerThread st = new ServerThread();

            st.ReadData(clientSocket, this);
        }