libnavajo
web server for static and dynamic pages developement in C++
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
IpNetwork Class Reference
Collaboration diagram for IpNetwork:
Collaboration graph
[legend]

Public Member Functions

 IpNetwork (const IpAddress &A)
 
 IpNetwork (const IpAddress &a, const u_int8_t &m)
 
bool operator< (const IpNetwork &A) const
 
std::string strCIDR () const
 
bool isInside (const IpAddress &ip) const
 

Static Public Member Functions

static IpNetworkfromString (const std::string &value)
 

Public Attributes

IpAddress addr
 
u_int8_t mask
 

Member Function Documentation

bool IpNetwork::isInside ( const IpAddress ip) const
inline

Is this IP address belonging to this network?

Parameters
ipis an ip address
netis a vector of IpNetwork
Returns
true if it belongs to local network, false otherwise

The documentation for this class was generated from the following file: