ConvertedSocketAddress.hpp 583 B

123456789101112131415161718192021222324252627282930
  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-26
  7. *
  8. * */
  9. #ifndef LS_STD_CONVERTED_SOCKET_ADDRESS_HPP
  10. #define LS_STD_CONVERTED_SOCKET_ADDRESS_HPP
  11. #include <ls_std/os/specification.hpp>
  12. #if LS_STD_UNIX_PLATFORM
  13. #include <netinet/in.h>
  14. #endif
  15. namespace ls::std::network
  16. {
  17. struct ConvertedSocketAddress
  18. {
  19. #if LS_STD_UNIX_PLATFORM
  20. ::sockaddr_in socketAddressUnix{};
  21. ::socklen_t addressLength{};
  22. #endif
  23. };
  24. }
  25. #endif