/// <summary> /// Constructor for the Server class which sets all data members fields accordingly. /// </summary> /// <param name="newClient">get the new client</param> /// <param name="newParrent">the server parent</param> public ProcessRequest(TcpClient newClient, Server newParrent) { this.user = newClient; serverParrent = newParrent; this.newHTTPRequest.sizeOfBody = 0; this.newHTTPResponse.sizeOfBody = 0; }
protected override void OnStart(string[] args) { Configuration getConfiguration = new Configuration(); if (getConfiguration.LoadAllSettings() == true) { Logger.Log("Web_Server is running."); server = new HTTPResponse(getConfiguration.port, getConfiguration.folder, getConfiguration.fileName); server.StartProgram(); } }