--- a/sources/network/ipaddress.h Wed Jan 27 19:01:37 2021 +0200 +++ b/sources/network/ipaddress.h Wed Jan 27 19:27:23 2021 +0200 @@ -40,10 +40,12 @@ namespace net { using octet_t = std::uint8_t; + using port_t = std::uint16_t; + using host_t = std::uint32_t; struct ip_address { - std::uint32_t host; - std::uint16_t port; + net::host_t host = 0; + net::port_t port = 0; bool operator<(const ip_address& other) const; bool operator==(const ip_address& other) const; };