Open Lighting Architecture  0.9.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | List of all members
ola::OlaDaemon Class Reference

Public Member Functions

 OlaDaemon (const OlaServer::Options &options, ExportMap *export_map=NULL)
 Create a new OlaDaemon.
 ~OlaDaemon ()
 Destroy this object.
bool Init ()
 Initialise the daemon.
void Shutdown ()
 Shutdown the daemon.
void Run ()
 Run the daemon.
ola::network::GenericSocketAddress RPCAddress () const
 Return the socket address the RPC server is listening on.
ola::io::SelectServerGetSelectServer ()
 Get the SelectServer the daemon is using.
OlaServerGetOlaServer () const
 Get the OlaServer the daemon is using.

Static Public Attributes

static const unsigned int DEFAULT_RPC_PORT = OLA_DEFAULT_PORT

Constructor & Destructor Documentation

ola::OlaDaemon::OlaDaemon ( const OlaServer::Options options,
ExportMap export_map = NULL 
)

Create a new OlaDaemon.

Parameters
optionsThe Options for the new OlaDaemon.
export_mapan optional ExportMap.

Member Function Documentation

OlaServer* ola::OlaDaemon::GetOlaServer ( ) const
inline

Get the OlaServer the daemon is using.

Returns
An OlaServer object.
ola::io::SelectServer* ola::OlaDaemon::GetSelectServer ( )
inline

Get the SelectServer the daemon is using.

Returns
A SelectServer object.
bool ola::OlaDaemon::Init ( )

Initialise the daemon.

Returns
true on success, false on failure.
ola::network::GenericSocketAddress ola::OlaDaemon::RPCAddress ( ) const

Return the socket address the RPC server is listening on.

Returns
A socket address, which is empty if the server hasn't been initialized.

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