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); } }
private void VerifyClient(TcpClient clientSocket) { ServerThread st = new ServerThread(); st.ReadData(clientSocket, this); }