Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
WsFsDaemonLoader Class Reference

Loads the FsDaemon depending on the params passed as args. More...

#include <WsFsDaemonLoader.h>

Collaboration diagram for WsFsDaemonLoader:
Collaboration graph

Public Member Functions

 WsFsDaemonLoader (WsGlobalProperties *props, bool daemon=false)
 Constructor. More...
 
 ~WsFsDaemonLoader ()
 destructor More...
 
int start ()
 launch the server More...
 

Private Member Functions

int daemonize ()
 daemonize the server, fork and put it in backgroud More...
 

Private Attributes

bool m_daemon
 daemonize or not More...
 
WsGlobalPropertiesm_props
 
WsFsDaemonm_server
 

Detailed Description

Loads the FsDaemon depending on the params passed as args.

Definition at line 25 of file WsFsDaemonLoader.h.

Constructor & Destructor Documentation

WsFsDaemonLoader::WsFsDaemonLoader ( WsGlobalProperties props,
bool  daemon = false 
)

Constructor.

Parameters
propsthe properties used to lauch the server
daemontrue if you want to run the server in background

Definition at line 20 of file WsFsDaemonLoader.cpp.

WsFsDaemonLoader::~WsFsDaemonLoader ( )

destructor

Definition at line 26 of file WsFsDaemonLoader.cpp.

Member Function Documentation

int WsFsDaemonLoader::daemonize ( )
private

daemonize the server, fork and put it in backgroud

Returns
SUCCESS or FAILURE

Definition at line 42 of file WsFsDaemonLoader.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int WsFsDaemonLoader::start ( )

launch the server

Returns
SUCCESS or FAILURE

Definition at line 32 of file WsFsDaemonLoader.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool WsFsDaemonLoader::m_daemon
private

daemonize or not

Definition at line 56 of file WsFsDaemonLoader.h.

WsGlobalProperties* WsFsDaemonLoader::m_props
private

Instance of WsGlobalProperties

Definition at line 61 of file WsFsDaemonLoader.h.

WsFsDaemon* WsFsDaemonLoader::m_server
private

WsFsDaemon instance

Definition at line 66 of file WsFsDaemonLoader.h.


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