Communication.h 947 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * @brief Defines the communication configuration
  3. * @file aman/types/Communication.h
  4. * @author Sven Czarnian <devel@svcz.de>
  5. * @copyright Copyright 2021 Sven Czarnian
  6. * @license This project is published under the GNU General Public License v3 (GPLv3)
  7. */
  8. #pragma once
  9. #include <string>
  10. namespace aman {
  11. /**
  12. * @brief Defines the communication structure
  13. * @ingroup types
  14. */
  15. struct Communication {
  16. bool valid; /**< Marks if the configuration is valid */
  17. std::string url; /**< The URL of the backend */
  18. std::uint16_t port; /**< The port of the backend */
  19. std::string identifier; /**< The user's identifier for the connection */
  20. /**
  21. * @brief Initializes an invalid configuration
  22. */
  23. Communication() :
  24. valid(false),
  25. url(),
  26. port(0),
  27. identifier() { }
  28. };
  29. }