private void _AcceptTcpClientCallback( IAsyncResult ar ) { TcpClient client; try { client = _tcpListener.EndAcceptTcpClient( ar ); } catch ( Exception e ) { Debug.Print( "IdentServer._AcceptTcpClientCallback: _tcpListener.EndAcceptTcpClient threw exception:\n{0}", e ); _AcceptConnections( ); return; } var handler = new IdentHandler( client ); handler.Start( ); _AcceptConnections( ); }
private void _AcceptTcpClientCallback(IAsyncResult ar) { TcpClient client; try { client = _tcpListener.EndAcceptTcpClient(ar); } catch (Exception e) { Debug.Print("IdentServer._AcceptTcpClientCallback: _tcpListener.EndAcceptTcpClient threw exception:\n{0}", e); _AcceptConnections( ); return; } var handler = new IdentHandler(client); handler.Start( ); _AcceptConnections( ); }
private void _AcceptTcpClientCallback( IAsyncResult ar ) { TcpClient client; try { client = _tcpListener.EndAcceptTcpClient( ar ); } catch ( ObjectDisposedException ) { Debug.Print( "IdentServer._AcceptTcpClientCallback: _tcpListener.EndAcceptTcpClient threw exception ObjectDisposedException: socket has been closed, terminating" ); return; } catch ( Exception e ) { Debug.Print( "IdentServer._AcceptTcpClientCallback: _tcpListener.EndAcceptTcpClient threw exception:\n{0}", e ); client = null; } if ( null != client ) { var handler = new IdentHandler( client ); handler.Start( ); } _AcceptConnections( ); }
private void _AcceptTcpClientCallback(IAsyncResult ar) { TcpClient client; try { client = _tcpListener.EndAcceptTcpClient(ar); } catch (ObjectDisposedException) { Debug.Print("IdentServer._AcceptTcpClientCallback: _tcpListener.EndAcceptTcpClient threw exception ObjectDisposedException: socket has been closed, terminating"); return; } catch (Exception e) { Debug.Print("IdentServer._AcceptTcpClientCallback: _tcpListener.EndAcceptTcpClient threw exception:\n{0}", e); client = null; } if (null != client) { var handler = new IdentHandler(client); handler.Start( ); } _AcceptConnections( ); }