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)); }
public SocksConnection(SocksServer server, Socket client, TunnelConfig tunnelConfig) { this.Server = server; this.Client = client; this.TunnelConfig = tunnelConfig; }