private void NewTransparentSocksConnection(IAsyncResult ar) { Socket client = null; try { client = transparentSocksServer.EndAcceptSocket(ar); } catch (SystemException) { } try { transparentSocksServer.BeginAcceptSocket(NewTransparentSocksConnection, null); } catch { } if (client == null) { return; } var connection = new TransparentSocksConnection(client, debug, connectionTracker, ConfigureSocksProxy); connection.Process(); }
private void NewTransparentSocksConnection(IAsyncResult ar) { Socket client = null; try { client = transparentSocksServer.EndAcceptSocket(ar); } catch (SystemException) { } transparentSocksServer.BeginAcceptSocket(NewTransparentSocksConnection, null); if (client == null) return; var connection = new TransparentSocksConnection(client, debug, connectionTracker, ConfigureSocksProxy); connection.Process(); }