CPPSERV


Home Projects Jobs Clientele Contact
CPPSERV Documentation Download TODO Mailing lists Bug tracker News RSS Feed Browse source

container::CServDemon Class Reference

#include <cservdemon.h>

Collaboration diagram for container::CServDemon:

List of all members.


Public Member Functions

 CServDemon ()
 ~CServDemon ()
void parseOptions (int argc, char **argv)
void start ()

Private Member Functions

void run ()
void setConfigPath (const char *)

Static Private Member Functions

static void handleSig11 (int signum, siginfo_t *info, void *par)
static void handleTermSig (int signum, siginfo_t *info, void *par)
static void supervisorTerm (int signum, siginfo_t *info, void *par)
static void help ()

Private Attributes

serverconfig::XMLServerConfig m_conf
std::string m_cinName
std::string m_coutName
std::string m_cerrName
bool m_detach
int m_pidF
std::string m_pidFPath
bool m_lockedPidFile

Detailed Description

Author:
Ilya A. Volynets-Evenbakh

Definition at line 33 of file cservdemon.h.


Constructor & Destructor Documentation

container::CServDemon::CServDemon (  ) 

Definition at line 40 of file cservdemon.cpp.

container::CServDemon::~CServDemon (  ) 

Definition at line 52 of file cservdemon.cpp.

References m_lockedPidFile, m_pidF, and m_pidFPath.


Member Function Documentation

void container::CServDemon::handleSig11 ( int  signum,
siginfo_t *  info,
void *  par 
) [static, private]

Parameters:
signum Signal number
info info struct
par param
Todo:
This implementaion is completely broken. At the very least connection should be closed and RequestHandler this thread runs on cleaned up

Definition at line 145 of file cservdemon.cpp.

void container::CServDemon::handleTermSig ( int  signum,
siginfo_t *  info,
void *  par 
) [static, private]

This function handles termination signales (SIGTERM, SIGINT), by telling dispatcher to stop running.

FIXME: stop the daemon

Definition at line 156 of file cservdemon.cpp.

Referenced by start().

void container::CServDemon::help (  )  [static, private]

Definition at line 175 of file cservdemon.cpp.

References container::version().

Referenced by parseOptions().

Here is the call graph for this function:

void container::CServDemon::parseOptions ( int  argc,
char **  argv 
)

Definition at line 98 of file cservdemon.cpp.

References help(), m_cerrName, m_conf, m_coutName, m_detach, m_pidFPath, setConfigPath(), container::serverconfig::ServerConfig::setGlobalParam(), and container::version().

Referenced by main().

Here is the call graph for this function:

void container::CServDemon::setConfigPath ( const char *  path  )  [private]

Definition at line 192 of file cservdemon.cpp.

References m_conf, container::serverconfig::ServerConfig::setGlobalParam(), and container::serverconfig::XMLServerConfig::setPath().

Referenced by parseOptions().

Here is the call graph for this function:

void container::CServDemon::start (  ) 

Definition at line 212 of file cservdemon.cpp.

References handleTermSig(), m_cerrName, m_cinName, m_coutName, m_detach, m_lockedPidFile, m_pidF, m_pidFPath, run(), and supervisorTerm().

Referenced by main().

Here is the call graph for this function:

void container::CServDemon::supervisorTerm ( int  signum,
siginfo_t *  info,
void *  par 
) [static, private]

This function handles termination signales (SIGTERM, SIGINT), by telling dispatcher to stop running.

Definition at line 167 of file cservdemon.cpp.

Referenced by start().


Member Data Documentation

std::string container::CServDemon::m_cerrName [private]

Definition at line 49 of file cservdemon.h.

Referenced by parseOptions(), and start().

std::string container::CServDemon::m_cinName [private]

Definition at line 49 of file cservdemon.h.

Referenced by start().

std::string container::CServDemon::m_coutName [private]

Definition at line 49 of file cservdemon.h.

Referenced by parseOptions(), and start().

Definition at line 50 of file cservdemon.h.

Referenced by parseOptions(), and start().

Definition at line 53 of file cservdemon.h.

Referenced by start(), and ~CServDemon().

Definition at line 51 of file cservdemon.h.

Referenced by start(), and ~CServDemon().

std::string container::CServDemon::m_pidFPath [private]

Definition at line 52 of file cservdemon.h.

Referenced by parseOptions(), start(), and ~CServDemon().


The documentation for this class was generated from the following files:

SourceForge.net Logo