yWeb 2.8.a.4

- updated nhttpd
- Code clean up
- changes to nhttpd.conf
- some changes for logo display

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@416 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
yjogol
2010-02-25 20:00:09 +00:00
parent eabc0f1644
commit bad0521f6c
30 changed files with 1711 additions and 1905 deletions

View File

@@ -3,7 +3,7 @@
// Main Class
//-----------------------------------------------------------------------------
// Cyhttpd
// Main Function and Class for Handlicg the Webserver-Application
// Main Function and Class for Handling the Webserver-Application
// - Handles Command Line Input
// - Reads and Handles "ReadConfig" (inclusive Hooking)
// - Creates Webserver and start them listening
@@ -18,16 +18,14 @@
#include "ytypes_globals.h"
#include "ywebserver.h"
//-----------------------------------------------------------------------------
class Cyhttpd
{
class Cyhttpd {
private:
CWebserver *webserver; // Aggregation of Webserver (now: only one)
CWebserver *webserver; // Aggregation of Webserver (now: only one)
public:
bool flag_threading_off; // switch of Connection Threading
static CStringList ConfigList; // Vars & Values from ReadConfig
bool flag_threading_off; // switch of Connection Threading
static CStringList ConfigList; // Vars & Values from ReadConfig
// signal handler
static volatile sig_atomic_t sig_do_shutdown;
@@ -37,16 +35,16 @@ public:
~Cyhttpd();
// Main Programm calls
void run(); // Init Hooks, ReadConfig, Start Webserver
bool Configure();
void stop_webserver(); // Remove Hooks, Stop Webserver
static void version(FILE *dest); // Show Webserver Version
static void usage(FILE *dest); // Show command line usage
void run(); // Init Hooks, ReadConfig, Start Webserver
bool Configure();
void stop_webserver(); // Remove Hooks, Stop Webserver
static void version(FILE *dest);// Show Webserver Version
static void usage(FILE *dest); // Show command line usage
// Hooks
void hooks_attach(); // Add a Hook-Class to HookList
void hooks_detach(); // Remove a Hook-Class from HookList
void ReadConfig(void); // Read the config file for the webserver
void ReadLanguage(void); // Read Language Files
void hooks_attach(); // Add a Hook-Class to HookList
void hooks_detach(); // Remove a Hook-Class from HookList
void ReadConfig(void); // Read the config file for the webserver
void ReadLanguage(void); // Read Language Files
};
#endif // __yhttpd_h__