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