change the configuration to handle the new ZMQ-REQ-REP-protocol and the RestAPI-Update protocol

This commit is contained in:
Sven Czarnian
2021-11-21 08:53:58 +01:00
parent 0acb45dd27
commit b309e86ec6
4 changed files with 27 additions and 10 deletions

View File

@@ -17,9 +17,10 @@ namespace aman {
*/
struct Communication {
bool valid; /**< Marks if the configuration is valid */
bool httpsProtocol; /**< Marks if the server uses HTTPS */
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::uint16_t portBackend; /**< The reported port of the backend */
std::uint16_t portRestAPI; /**< 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 */
@@ -29,9 +30,10 @@ namespace aman {
*/
Communication() :
valid(false),
httpsProtocol(false),
address(),
portReporter(0),
portNotification(0),
portBackend(0),
portRestAPI(0),
serverPublicIdentifier(),
clientPublicIdentifier(),
clientPrivateIdentifier() { }