|
ORE Studio 0.0.4
|
Provides command-line options for server configuration. More...
#include <server_configuration.hpp>

Static Public Member Functions | |
| static boost::program_options::options_description | make_options_description (std::uint16_t default_port, std::uint32_t default_max_connections, const std::string &default_identifier, bool include_ssl=false) |
| Creates the options description for server CLI arguments. | |
| static net::server_options | read_options (const boost::program_options::variables_map &vm) |
| Reads server options from parsed variables map. | |
Provides command-line options for server configuration.
Standard server options: -p, –port PORT Port to listen on -m, –max-connections N Maximum concurrent connections -i, –identifier ID Server identifier for handshake
SSL options (when include_ssl is true): -c, –certificate FILE Path to SSL certificate file -k, –private-key FILE Path to SSL private key file
|
static |
Creates the options description for server CLI arguments.
| default_port | Default port number. |
| default_max_connections | Default max connections. |
| default_identifier | Default server identifier. |
| include_ssl | Whether to include SSL certificate options. |
|
static |
Reads server options from parsed variables map.
| vm | Parsed command-line options. |