Esempio n. 1
0
        public bool LoadConfig()
        {
            var configs = ConfigHelper.LoadServerConfig();

            _Config = new HttpServerConfigure();

            _Config.InitCommand(configs.CommandList);

            //设置主机头
            _Config.HostList    = configs.HostList;
            _Config.Port        = configs.Port;
            _Config.SendThreads = configs.SendThreads;

            MaxPostLength     = configs.MaxPostLength;
            MaxHeaderLines    = configs.MaxHeaderLines;
            MaxQueuedRequests = configs.MaxQueuedRequests;

            return(true);
        }
Esempio n. 2
0
 /// <summary>
 /// 初始化
 /// </summary>
 public HttpServer()
 {
     _Config = new HttpServerConfigure();
 }
Esempio n. 3
0
        public bool LoadConfig()
        {
            var configs =  ConfigHelper.LoadServerConfig();
            _Config = new HttpServerConfigure();

            _Config.InitCommand(configs.CommandList);

            //设置主机头
            _Config.HostList = configs.HostList;
            _Config.Port = configs.Port;
            _Config.SendThreads = configs.SendThreads;

            MaxPostLength = configs.MaxPostLength;
            MaxHeaderLines = configs.MaxHeaderLines;
            MaxQueuedRequests = configs.MaxQueuedRequests;

            return true;
        }
Esempio n. 4
0
 /// <summary>
 /// 初始化
 /// </summary>
 public HttpServer()
 {
     _Config = new HttpServerConfigure();
 }