Ejemplo n.º 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();
 }
Ejemplo n.º 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();
 }