extend the configuration

This commit is contained in:
Sven Czarnian
2021-08-16 08:08:41 +02:00
parent db3d3bf48d
commit 87ba0be57d
2 changed files with 15 additions and 10 deletions

View File

@@ -16,18 +16,20 @@ namespace aman {
* @ingroup types
*/
struct Communication {
bool valid; /**< Marks if the configuration is valid */
std::string url; /**< The URL of the backend */
std::uint16_t port; /**< The port of the backend */
std::string identifier; /**< The user's identifier for the connection */
bool valid; /**< Marks if the configuration is valid */
std::string address; /**< The address of the backend */
std::uint16_t portReporter; /**< The reported port of the backend */
std::uint16_t portNotification; /**< The notification port of the backend */
std::string identifier; /**< The user's identifier for the connection */
/**
* @brief Initializes an invalid configuration
*/
Communication() :
valid(false),
url(),
port(0),
address(),
portReporter(0),
portNotification(0),
identifier() { }
};
}