/// <summary>
 /// Each HTTP processor object handles one client.  If Keep-Alive is enabled then this
 /// object will be reused for subsequent requests until the client breaks keep-alive.
 /// This usually happens when it times out.  Because this could easily lead to a DoS
 /// attack, we keep track of the number of open processors and only allow 100 to be
 /// persistent active at any one time.  Additionally, we do not allow more than 500
 /// outstanding requests.
 /// </summary>
 /// <param name="docRoot">Root-Directory of the HTTP Server</param>
 /// <param name="s">the Socket to work with</param>
 /// <param name="webserver">the "master" HttpServer Object of this Client</param>
 public HttpProcessor(Socket s, Settings.Settings Settings)
 {
     internalSettings = Settings;
     this.s = s;
     docRootFile = new FileInfo(internalSettings.HTTP.DocumentRoot);
     headers = new Hashtable();
     Template_Processor = new TemplateProcessor(internalSettings);
 }
Exemple #2
0
 public HttpServer(Settings.Settings Settings)
 {
     internalSettings = Settings;
 }
Exemple #3
0
 public Switcher()
 {
     AppSettings = new FFN_Switcher.Settings.Settings();
 }
        /// <summary>
        /// Constructor of the Templace Processor
        /// </summary>
        /// <param name="vcrscheduler">the VCRScheduler...so we can get the </param>
        public TemplateProcessor(Settings.Settings Settings)
        {
            internalSettings = Settings;

            SettingsNames = internalSettings.GetSettingsNameListings();
        }