crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
crawlservpp::Struct::ServerSettings Struct Reference

Server settings containing its port, as well as allowed clients, origins, and actions. More...

#include <ServerSettings.hpp>

Properties

std::string port
 The port of the server as string. More...
 
std::string allowedClients
 A list of allowed IP addresses, separated by commas. More...
 
bool logsDeletable {false}
 Indicates whether the deletion of logs is allowed using the frontend, i.e. server commands. More...
 
bool dataDeletable {false}
 Indicates whether the deletion of data is allowed using the frontend, i.e. server commands. More...
 
std::uint16_t sleepOnSqlErrorS {serverSleepOnSqlErrorDefault}
 Number of seconds to wait if a MySQL error occures before retrying and possibly terminating the thread. More...
 

Detailed Description

Server settings containing its port, as well as allowed clients, origins, and actions.

These settings are read from the configuration file.

Member Data Documentation

◆ allowedClients

std::string crawlservpp::Struct::ServerSettings::allowedClients

A list of allowed IP addresses, separated by commas.

Referenced by crawlservpp::Main::App::run(), and crawlservpp::Main::Server::tick().

◆ dataDeletable

bool crawlservpp::Struct::ServerSettings::dataDeletable {false}

Indicates whether the deletion of data is allowed using the frontend, i.e. server commands.

Referenced by crawlservpp::Main::App::run(), and crawlservpp::Main::Server::tick().

◆ logsDeletable

bool crawlservpp::Struct::ServerSettings::logsDeletable {false}

Indicates whether the deletion of logs is allowed using the frontend, i.e. server commands.

Referenced by crawlservpp::Main::App::run(), and crawlservpp::Main::Server::tick().

◆ port

std::string crawlservpp::Struct::ServerSettings::port

The port of the server as string.

Referenced by crawlservpp::Main::App::run(), and crawlservpp::Main::Server::Server().

◆ sleepOnSqlErrorS

std::uint16_t crawlservpp::Struct::ServerSettings::sleepOnSqlErrorS {serverSleepOnSqlErrorDefault}

Number of seconds to wait if a MySQL error occures before retrying and possibly terminating the thread.

Referenced by crawlservpp::Main::App::run(), crawlservpp::Main::Server::Server(), and crawlservpp::Main::Server::tick().


The documentation for this struct was generated from the following file: