26 #ifndef NFD_CORE_NETWORK_HPP 27 #define NFD_CORE_NETWORK_HPP 38 Network(
const boost::asio::ip::address& minAddress,
39 const boost::asio::ip::address& maxAddress);
44 return m_minAddress <= address && address <= m_maxAddress;
59 return m_minAddress == rhs.m_minAddress && m_maxAddress == rhs.m_maxAddress;
65 return !(*
this == rhs);
69 boost::asio::ip::address m_minAddress;
70 boost::asio::ip::address m_maxAddress;
87 #endif // NFD_CORE_NETWORK_HPP friend std::ostream & operator<<(std::ostream &os, const Network &network)
static bool isValidCidr(const std::string &cidr)
bool operator!=(const Network &rhs) const
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
bool doesContain(const boost::asio::ip::address &address) const
bool operator==(const Network &rhs) const
static const Network & getMaxRangeV6()
friend std::istream & operator>>(std::istream &is, Network &network)
static const Network & getMaxRangeV4()