|
LibSWOC++ 1.5.14
Solid Wall of C++
|
#include <IPRange.h>

Public Member Functions | |
| IPNet ()=default | |
| Construct invalid network. | |
| IPNet (self_type const &that)=default | |
| Copy constructor. | |
| IPNet (IPAddr const &addr, IPMask const &mask) | |
| IPNet (TextView text) | |
| bool | load (swoc::TextView text) |
| bool | empty () const |
| IPAddr | min () const |
| IPAddr | max () const |
| IPMask::raw_type | width () const |
| IPMask const & | mask () const |
| IPRange | as_range () const |
| bool | is_ip4 () const |
| bool | is_ip6 () const |
| sa_family_t | family () const |
| Address family of network. | |
| IP4Net | ip4 () const |
| IP6Net | ip6 () const |
| self_type & | assign (IPAddr const &addr, IPMask const &mask) |
| self_type & | clear () |
| Reset network to invalid state. | |
| bool | operator== (self_type const &that) const |
| Equality. | |
| bool | operator!= (self_type const &that) const |
| Inequality. | |
Protected Attributes | |
| IPAddr | _addr |
| Address and family. | |
| IPMask | _mask |
| Network mask. | |
Construct from addr and mask.
| addr | An address in the network. |
| mask | The mask for the network. |
The network is based on the mask, and the resulting network address is chosen such that the network will contain addr. For a given addr and mask there is only one network that satisifies these criteria.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool swoc::IPNet::load | ( | swoc::TextView | text | ) |
Parse network as text.
| text | String describing the network in CIDR format. |
true if a valid string, false if not. Definition at line 897 of file swoc_ip.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |