예제 #1
0
        /// <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));
        }
예제 #2
0
 /// <summary>
 /// TCPSocks5Connection
 /// </summary>
 public TCPSocks5Connection(TCPSocks5Server server, Socket client)
 {
     this.Server = server;
     this.Client = client;
 }