our current experimental Neutrino branch

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
mrcolor
2009-12-08 11:05:11 +00:00
commit bc5bd4154e
876 changed files with 193775 additions and 0 deletions

50
src/nhttpd/yhttpd.h Normal file
View File

@@ -0,0 +1,50 @@
//=============================================================================
// YHTTPD
// Main Class
//-----------------------------------------------------------------------------
// Cyhttpd
// Main Function and Class for Handlicg the Webserver-Application
// - Handles Command Line Input
// - Reads and Handles "ReadConfig" (inclusive Hooking)
// - Creates Webserver and start them listening
//=============================================================================
#ifndef __yhttpd_h__
#define __yhttpd_h__
// system
#include <signal.h>
// yhttpd
#include "yconfig.h"
#include "ytypes_globals.h"
#include "ywebserver.h"
//-----------------------------------------------------------------------------
class Cyhttpd
{
private:
CWebserver *webserver; // Aggregation of Webserver (now: only one)
public:
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;
// constructor & destructor
Cyhttpd();
~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
// 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
};
#endif // __yhttpd_h__