54 using Ptr = std::shared_ptr<Address>;
57 static Ptr create(
const sockaddr *address, socklen_t address_len);
59 static bool lookUp(std::vector<Address::Ptr> &result,
const std::string &host,
int family = AF_INET,
int type = 0,
int protocol = 0);
61 static Address::Ptr lookUpAny(
const std::string &host,
int family = AF_INET,
int type = 0,
int protocol = 0);
67 [[nodiscard]] virtual std::
string getAddress() const noexcept = 0;