Server
Engine server class
Object : _engine.server
If you plan on using a proxy like Nginx or Apache2, DO NOT use SSL in server, instead define it in your proxy and keep the connection between the proxy and Server non-SSL.
Members
port
unsigned short
port used to expose the server
bindaddr
std::string
bind address mask
concurrency
unsigned short
number of threads for the server to start by default is 4 (minimum)
certfile
std::string
path to ssl certificate .crt
keyfile
std::string
path to ssl key .key
ssl_enable
bool
controller to check if ssl is enabled
Functions
Server
(void)
Server
the class constructor creates a new Server instance
setup
(configuration::Configuration &, logging::Logging &)
void
configuring the Server has the function of being an Server builder
run_async
(void)
std::future
run synchronously server.
tick
(std::chrono::milliseconds, std::function<void()>)
void
register a function for the server that will always be called every millisecond passed by the first parameter
stop
(void)
void
stop the server running
Last updated