Beispiel #1
0
 public ClientReq(TcpClient tcpClient, ProxyServer proxyServer)
 {
     _tcpClient = tcpClient;
     _proxyServer = proxyServer;
     _domainName = "http://www.baidu.com";
     RespCreator.load();
 }
Beispiel #2
0
 static void Main(string[] args)
 {
     Config config = new Config();
     config.load();
     ProxyServer proxy = new ProxyServer(config.IP,config.PORT);
     try
     {
         proxy.start();
     }
     catch (System.Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }