Exemple #1
0
        int _indexServer; //サーバ側にどこまで送信を完了したかのインデックス

        #endregion Fields

        #region Constructors

        public ProxyHttp(Proxy proxy, Kernel kernel, Conf conf, Cache cache, LimitString limitString)
            : base(proxy)
        {
            _kernel = kernel;
            //_oneOption = oneOption;
            _conf = conf;
            _cache = cache;
            LimitString = limitString;
            KeepAlive = true;//デフォルトで継続型
        }
Exemple #2
0
 public void SetUp()
 {
     var kernel = new Kernel();
     var ip = new Ip("127.0.0.1");
     const int port = 0;
     Ssl ssl = null;
     var tcpObj = new SockTcp(new Kernel(), ip,port,3,ssl);
     var upperProxy = new UpperProxy(false, "", 0, null,false,"","");//上位プロキシ未使用
     const int timeout = 3;
     _proxy = new Proxy(kernel, null, tcpObj, timeout,upperProxy);
 }