feisty meow concerns codebase
2.140
|
Provides an easy way to determine the range of a subnet given the subnet mask and a sample IP address. More...
#include <subnet_calculator.h>
Public Member Functions | |
subnet_calculator (const basis::astring &subnet_mask, const basis::astring &ip_address) | |
~subnet_calculator () | |
basis::astring | convert (basis::un_int num_format) |
basis::un_int | convert (const basis::astring &ip_format) |
const basis::astring & | low_end () |
const basis::astring & | high_end () |
const basis::astring & | subnet_mask () const |
void | subnet_mask (const basis::astring &new_mask) |
const basis::astring & | ip_address () const |
void | ip_address (const basis::astring &new_address) |
bool | valid () const |
Provides an easy way to determine the range of a subnet given the subnet mask and a sample IP address.
Definition at line 24 of file subnet_calculator.h.
sockets::subnet_calculator::subnet_calculator | ( | const basis::astring & | subnet_mask, |
const basis::astring & | ip_address | ||
) |
Definition at line 32 of file subnet_calculator.cpp.
sockets::subnet_calculator::~subnet_calculator | ( | ) |
Definition at line 40 of file subnet_calculator.cpp.
References basis::WHACK().
astring sockets::subnet_calculator::convert | ( | basis::un_int | num_format | ) |
Definition at line 77 of file subnet_calculator.cpp.
References basis::astring::t().
un_int sockets::subnet_calculator::convert | ( | const basis::astring & | ip_format | ) |
Definition at line 92 of file subnet_calculator.cpp.
References basis::astring::convert(), basis::astring::find(), basis::astring::length(), basis::astring::substring(), and basis::astring::zap().
const astring & sockets::subnet_calculator::high_end | ( | ) |
Definition at line 71 of file subnet_calculator.cpp.
const astring & sockets::subnet_calculator::ip_address | ( | ) | const |
Definition at line 51 of file subnet_calculator.cpp.
void sockets::subnet_calculator::ip_address | ( | const basis::astring & | new_address | ) |
Definition at line 59 of file subnet_calculator.cpp.
const astring & sockets::subnet_calculator::low_end | ( | ) |
Definition at line 65 of file subnet_calculator.cpp.
const astring & sockets::subnet_calculator::subnet_mask | ( | ) | const |
Definition at line 49 of file subnet_calculator.cpp.
void sockets::subnet_calculator::subnet_mask | ( | const basis::astring & | new_mask | ) |
Definition at line 53 of file subnet_calculator.cpp.
|
inline |
Definition at line 47 of file subnet_calculator.h.