示例#1
0
 internal override void EndEstablish(IAsyncResult ar)
 {
     try
     {
         _socket = _listenSocket.EndAccept(ar);
         _stream = new NetworkStreamEx(_socket);
     }
     catch (SocketException e)
     {
         CheckDisposed();
         CheckTimeoutException(e);
         throw;
     }
     catch
     {
         CheckDisposed();
         throw;
     }
 }