Searched refs:net13 (Results 1 – 2 of 2) sorted by relevance
276 network_v4 net13(make_network_v4("192.168.1.1/28")); in test() local280 BOOST_ASIO_CHECK(net13.network() == make_address_v4("192.168.1.0")); in test()284 BOOST_ASIO_CHECK(net13.netmask() == make_address_v4("255.255.255.240")); in test()288 BOOST_ASIO_CHECK(net13.broadcast() == make_address_v4("192.168.1.15")); in test()295 BOOST_ASIO_CHECK(std::distance(net13.hosts().begin(),net13.hosts().end()) == 14); in test()296 BOOST_ASIO_CHECK(*net13.hosts().begin() == make_address_v4("192.168.1.1")); in test()297 BOOST_ASIO_CHECK(net13.hosts().end() != net13.hosts().find(make_address_v4("192.168.1.14"))); in test()298 BOOST_ASIO_CHECK(net13.hosts().end() == net13.hosts().find(make_address_v4("192.168.1.15"))); in test()
201 network_v6 net13(make_network_v6("2001:0db8::/127")); in test() local207 BOOST_ASIO_CHECK(net13.network() == make_address_v6("2001:0db8::")); in test()213 BOOST_ASIO_CHECK(std::distance(net13.hosts().begin(),net13.hosts().end()) == 2); in test()218 BOOST_ASIO_CHECK(*net13.hosts().begin() == make_address_v6("2001:0db8::")); in test()219 BOOST_ASIO_CHECK(net13.hosts().end() != net13.hosts().find(make_address_v6("2001:0db8::1"))); in test()220 BOOST_ASIO_CHECK(net13.hosts().end() == net13.hosts().find(make_address_v6("2001:0db8::2"))); in test()