Пример #1
0
 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();
 }
Пример #2
0
 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();
 }