private void AcceptCallback(IAsyncResult ar) { //Process connection to remote point Socket remoteSocket = listenSocket.EndAccept(ar); listenDone.Set(); //Begin to receive package QsNetIOReceiver receiver = new QsNetIOReceiver(remoteSocket); receiver.Receive(); }
private void AcceptCallback(IAsyncResult ar) { //Process connection to remote point Socket remoteSocket = listenSocket.EndAccept(ar); listenDone.Set(); System.Console.WriteLine("One connection has been established."); //Begin to receive package QsNetIOReceiver receiver = new QsNetIOReceiver(remoteSocket); receiver.Receive(); }