示例#1
0
        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();
        }
示例#2
0
        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();
        }