static std::string format_whitelist(const authority& authority)
{
    auto formatted = authority.to_string();
    if (authority.port() == 0)
        formatted += ":*";

    return formatted;
}
예제 #2
0
bool authority::operator==(const authority& other) const
{
    return port() == other.port() && ip() == other.ip();
}
예제 #3
0
// public:
void connector::connect(const authority& authority, connect_handler handler)
{
    connect(authority.to_hostname(), authority.port(), handler);
}