ConvertedSocketAddress.hpp 573 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2022-11-18
  6. * Changed: 2022-12-12
  7. *
  8. * */
  9. #ifndef LS_STD_CONVERTED_SOCKET_ADDRESS_HPP
  10. #define LS_STD_CONVERTED_SOCKET_ADDRESS_HPP
  11. #if defined(unix) || defined(__APPLE__)
  12. #include <netinet/in.h>
  13. #endif
  14. namespace ls::std::network
  15. {
  16. struct ConvertedSocketAddress
  17. {
  18. #if defined(unix) || defined(__APPLE__)
  19. ::sockaddr_in socketAddressUnix{};
  20. ::socklen_t addressLength{};
  21. #endif
  22. };
  23. }
  24. #endif