34 using Ptr = std::shared_ptr<IPAddress>;
36 static Ptr create(
const char *address, uint16_t port = 0);
42 virtual void setPort(uint16_t port)
noexcept = 0;
43 [[nodiscard]]
virtual uint16_t
getPort() const noexcept = 0;
44 virtual
void setFamily(uint16_t family) noexcept = 0;
45 [[nodiscard]] virtual uint16_t
getFamily() noexcept = 0;