update the configuration

This commit is contained in:
Sven Czarnian
2021-08-17 17:30:10 +02:00
parent 627361035c
commit b1ab52d717
3 changed files with 24 additions and 34 deletions

View File

@@ -16,11 +16,13 @@ namespace aman {
* @ingroup types
*/
struct Communication {
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 */
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 serverPublicIdentifier; /**< The server's public identifier */
std::string clientPublicIdentifier; /**< The client's public identifier */
std::string clientPrivateIdentifier; /**< The client's private identifier */
/**
* @brief Initializes an invalid configuration
@@ -30,6 +32,8 @@ namespace aman {
address(),
portReporter(0),
portNotification(0),
identifier() { }
serverPublicIdentifier(),
clientPublicIdentifier(),
clientPrivateIdentifier() { }
};
}