The main OlaServer class.
|
static const unsigned int | DEFAULT_HTTP_PORT = 9090 |
|
static const unsigned int | DEFAULT_RPC_PORT = OLA_DEFAULT_PORT |
|
◆ OlaServer()
Create a new instance of the OlaServer.
- Parameters
-
plugin_loaders | A list of PluginLoaders to use to find plugins. |
preferences_factory | The factory to use when creating Preference objects. |
ss | The SelectServer. |
ola_options | The OlaServer options. |
socket | An optional TCPAcceptingSocket in the listen state to use for client RPC calls. Ownership is transferred. |
export_map | An optional ExportMap. If set to NULL a new ExportMap will be created. |
◆ ClientRemoved()
◆ GetPreferencesFactory()
Get the preferences factory.
- Returns
- a pointer to the preferences factory
◆ Init()
bool ola::OlaServer::Init |
( |
| ) |
|
Initialize the OlaServer.
- Returns
- true if initialization succeeded, false if it failed.
◆ InstanceName()
const std::string ola::OlaServer::InstanceName |
( |
| ) |
|
|
inline |
Get the instance name.
- Returns
- a string which is the instance name
◆ LocalRPCAddress()
Return the socket address the RPC server is listening on.
- Returns
- A socket address, which is empty if the server hasn't been initialized.
◆ NewClient()
◆ NewConnection()
Add a new ConnectedDescriptor to this Server.
- Parameters
-
descriptor | the new ConnectedDescriptor, ownership is transferred. |
◆ ReloadPidStore()
void ola::OlaServer::ReloadPidStore |
( |
| ) |
|
Reload the pid store.
This method is thread safe.
◆ ReloadPlugins()
void ola::OlaServer::ReloadPlugins |
( |
| ) |
|
Reload all plugins.
This method is thread safe.
◆ StopServer()
void ola::OlaServer::StopServer |
( |
| ) |
|
|
inline |
Stop the OLA Server.
This terminates the underlying SelectServer.
The documentation for this class was generated from the following files: