dboo::odb::init_server

static void init_server(const std::string& server_executable_path,
                        const std::string& config_path,
                        const std::string& server_path,
                        const std::string& database_path,
                        const std::string& logs_path,
                        const std::string& host,
                        int port);
init_server(server_executable_path,
            config_path,
            server_path,
            database_path,
            logs_path,
            host,
            port)

Initializes a server instance.

Parameters

server_executable_path

The path to the server executable.

config_path

A path to a configuration file that will be created.

server_path

A directory path where the server database files will be stored

database_path

A directory path where user databases will be stored

logs_path

A directory path where server logs will be stored

host

The listening host for the server

port

The listening port for the server

Return value

(none)

Exceptions

Example