public void AcceptCallback(IAsyncResult ar) { // Signal the main thread to continue. allDone.Set(); // Get the socket that handles the client request. Socket newSock = listener.EndAccept(ar); agsXMPP.XmppSeverConnection con = new agsXMPP.XmppSeverConnection(newSock); //listener.BeginReceive(buffer, 0, BUFFERSIZE, 0, new AsyncCallback(ReadCallback), null); }
public void AcceptCallback(IAsyncResult ar) { // Signal the main thread to continue. allDone.Set(); // Get the socket that handles the client request. Socket newSock = listener.EndAccept(ar); agsXMPP.XmppSeverConnection con = new agsXMPP.XmppSeverConnection(newSock); //listener.BeginReceive(buffer, 0, BUFFERSIZE, 0, new AsyncCallback(ReadCallback), null); }