摘要:
1.采用循环方式://.....ManualResetEvent allDone = new ManualResetEvent(false);//信号量listener.Listen(100);while (true){ allDone.Reset(); listener.BeginAccept(new AsyncCallback(AcceptCallBack),listener); allDone.WaitOne();}void AcceptCallBack(IAsyncResult result){ allDone.Set(); //...... }有时候觉得对ManualResetEve 阅读全文