Example #1
0
        public static void DoRequest(SocksServer server, Socket client, TunnelConfig tunnelConfig)
        {
            SocksConnection connection = new SocksConnection(server, client, tunnelConfig);

            client.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, 1);
            ThreadPool.QueueUserWorkItem(new WaitCallback(connection.DoRequest));
        }
Example #2
0
 public SocksConnection(SocksServer server, Socket client, TunnelConfig tunnelConfig)
 {
     this.Server       = server;
     this.Client       = client;
     this.TunnelConfig = tunnelConfig;
 }