static std::string format_whitelist(const authority& authority) { auto formatted = authority.to_string(); if (authority.port() == 0) formatted += ":*"; return formatted; }
bool authority::operator==(const authority& other) const { return port() == other.port() && ip() == other.ip(); }
// public: void connector::connect(const authority& authority, connect_handler handler) { connect(authority.to_hostname(), authority.port(), handler); }