mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
our current experimental Neutrino branch
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: bc5bd4154e
Author: mrcolor <mrcolor@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-08 (Tue, 08 Dec 2009)
------------------
This commit was generated by Migit
This commit is contained in:
50
src/nhttpd/yhttpd.h
Normal file
50
src/nhttpd/yhttpd.h
Normal 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__
|
Reference in New Issue
Block a user