#include <senf/Socket/Protocols/INet/INet4Address.hh>
This helper allows to easily and efficiently check an INet4Address against an arbitrary but constant network prefix. The network prefix is represented by
senf::CheckINet4Network<
addr ,
prefix-len >
match(
addr )
which matches the INet4Address addr against the prefix:
if (senf::CheckINet4Network<0x7F000000u,8u>::match(addr)) { // 'addr' is within the 127.0.0.0/8 loopback network ... }
Definition at line 208 of file INet4Address.hh.
Static Public Member Functions |
|
static bool | match (INet4Address const &addr) |
bool senf::CheckINet4Network< address, prefix_len >:: | ||||
match | ( | INet4Address const & | addr | ) |
Definition at line 38 of file INet4Address.cti.