/// <summary> /// 处理请求 /// </summary> /// <param name="server"></param> /// <param name="client"></param> public static void DoRequest(TCPSocks5Server server, Socket client) { TCPSocks5Connection connection = new TCPSocks5Connection(server, client); ThreadPool.QueueUserWorkItem(new WaitCallback(connection.DoRequest)); }
/// <summary> /// TCPSocks5Connection /// </summary> public TCPSocks5Connection(TCPSocks5Server server, Socket client) { this.Server = server; this.Client = client; }