21#ifndef OLAD_OLADAEMON_H_
22#define OLAD_OLADAEMON_H_
30#include "ola/io/SelectServer.h"
32#include "olad/OlaServer.h"
93 std::vector<class PluginLoader*> m_plugin_loaders;
96 std::auto_ptr<class PreferencesFactory> m_preferences_factory;
97 std::auto_ptr<OlaServer> m_server;
99 std::string DefaultConfigDir();
100 bool InitConfigDir(
const std::string &path);
102 static const char OLA_CONFIG_DIR[];
103 static const char CONFIG_DIR_KEY[];
104 static const char UID_KEY[];
105 static const char USER_NAME_KEY[];
106 static const char GID_KEY[];
107 static const char GROUP_NAME_KEY[];
Constants used throughout OLA.
Export variables on the http server.
Represents Socket Addresses.
A container for the exported variables.
Definition ExportMap.h:324
Definition OlaDaemon.h:36
ola::io::SelectServer * GetSelectServer()
Get the SelectServer the daemon is using.
Definition OlaDaemon.h:78
OlaServer * GetOlaServer() const
Get the OlaServer the daemon is using.
Definition OlaDaemon.h:84
~OlaDaemon()
Destroy this object.
Definition OlaDaemon.cpp:98
bool Init()
Initialise the daemon.
Definition OlaDaemon.cpp:102
OlaDaemon(const OlaServer::Options &options, ExportMap *export_map=NULL)
Create a new OlaDaemon.
Definition OlaDaemon.cpp:71
ola::network::GenericSocketAddress RPCAddress() const
Return the socket address the RPC server is listening on.
Definition OlaDaemon.cpp:157
void Shutdown()
Shutdown the daemon.
Definition OlaDaemon.cpp:147
void Run()
Run the daemon.
Definition OlaDaemon.cpp:153
The main OlaServer class.
Definition OlaServer.h:61
A single threaded I/O event management system.
Definition SelectServer.h:63
a Generic Socket Address
Definition SocketAddress.h:166
The namespace containing all OLA symbols.
Definition Credentials.cpp:44
static const int OLA_DEFAULT_PORT
The default port which olad listens on for incoming RPC connections.
Definition Constants.h:68
Options for the OlaServer.
Definition OlaServer.h:66