コード例 #1
0
static std::string format_whitelist(const authority& authority)
{
    auto formatted = authority.to_string();
    if (authority.port() == 0)
        formatted += ":*";

    return formatted;
}
コード例 #2
0
ファイル: authority.cpp プロジェクト: GeopaymeEE/libbitcoin
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);
}