private void OnConnected(object owner, SocketAsyncEventArgs args) { // reset the wait event if (_evtSendWait != null) { _evtSendWait.Set(); } // stop listener if (_clientSocket.IsListening) { _clientSocket.ListenStop(); } }
private void OnConnected(object owner, SocketAsyncEventArgs args) { // reset the wait event if (_evtSendWait != null) { _evtSendWait.Set(); } // stop listener if (_clientSocket.IsListening) { _clientSocket.ListenStop(); } }