DaZeus  2.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
pluginmonitor.cpp File Reference
#include "pluginmonitor.h"
#include "utils.h"
#include "config.h"
#include <unistd.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <time.h>
#include <assert.h>
#include <iostream>
#include <errno.h>
#include <string.h>
Include dependency graph for pluginmonitor.cpp:

Go to the source code of this file.

Classes

struct  dazeus::PluginState
 

Namespaces

namespace  dazeus
 Chooses one server or the other based on the priority and failure rate. Failure rate is recorded in the Network object that the ServerConfig object links to via the NetworkConfig, if there is such a NetworkConfig object. You must give two servers of the same Network.
 

Macros

#define PLUGIN_EXIT_VALUE_CHDIR   -7
 
#define PLUGIN_EXIT_VALUE_EXEC   -8
 
#define PLUGIN_RUNTIME_RESET_FAILURE   3600
 
#define PLUGIN_RUNTIME_MAX_WAIT_TIME   300
 

Functions

bool directory_exists (std::string dir)
 
bool file_exists (std::string file)
 
bool executable_exists (std::string file)
 

Macro Definition Documentation

#define PLUGIN_EXIT_VALUE_CHDIR   -7

Copyright (c) Sjors Gielen, 2013 See LICENSE for license.

Definition at line 19 of file pluginmonitor.cpp.

#define PLUGIN_EXIT_VALUE_EXEC   -8

Definition at line 20 of file pluginmonitor.cpp.

#define PLUGIN_RUNTIME_MAX_WAIT_TIME   300

Definition at line 27 of file pluginmonitor.cpp.

#define PLUGIN_RUNTIME_RESET_FAILURE   3600

Definition at line 24 of file pluginmonitor.cpp.

Function Documentation

bool directory_exists ( std::string  dir)

Definition at line 50 of file pluginmonitor.cpp.

bool executable_exists ( std::string  file)

Definition at line 64 of file pluginmonitor.cpp.

bool file_exists ( std::string  file)

Definition at line 57 of file pluginmonitor.cpp.