|
@@ -17,9 +17,10 @@ namespace aman {
|
|
*/
|
|
*/
|
|
struct Communication {
|
|
struct Communication {
|
|
bool valid; /**< Marks if the configuration is valid */
|
|
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::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 serverPublicIdentifier; /**< The server's public identifier */
|
|
std::string clientPublicIdentifier; /**< The client's public identifier */
|
|
std::string clientPublicIdentifier; /**< The client's public identifier */
|
|
std::string clientPrivateIdentifier; /**< The client's private identifier */
|
|
std::string clientPrivateIdentifier; /**< The client's private identifier */
|
|
@@ -29,9 +30,10 @@ namespace aman {
|
|
*/
|
|
*/
|
|
Communication() :
|
|
Communication() :
|
|
valid(false),
|
|
valid(false),
|
|
|
|
+ httpsProtocol(false),
|
|
address(),
|
|
address(),
|
|
- portReporter(0),
|
|
|
|
- portNotification(0),
|
|
|
|
|
|
+ portBackend(0),
|
|
|
|
+ portRestAPI(0),
|
|
serverPublicIdentifier(),
|
|
serverPublicIdentifier(),
|
|
clientPublicIdentifier(),
|
|
clientPublicIdentifier(),
|
|
clientPrivateIdentifier() { }
|
|
clientPrivateIdentifier() { }
|