Scopira
20080306
|
#include <netflow.h>
Public Member Functions | |
netaddr (void) | |
default constructor, inits to local host | |
netaddr (int _ip0, int _ip1, int _ip2, int _ip3) | |
quick ip4 constructor | |
std::string | as_string (void) const |
return x.x.x.x form | |
bool | parse_string (const std::string &s) |
parse from a string | |
Public Member Functions inherited from scopira::tool::fixed_array< unsigned char, 4 > | |
unsigned char * | array (void) |
const unsigned char * | array (void) const |
unsigned char * | c_array (void) |
const unsigned char * | c_array (void) const |
iterator | begin (void) |
const_iterator | begin (void) const |
iterator | end (void) |
const_iterator | end (void) const |
void | clear_zero (void) |
size_t | size (void) const |
bool | empty (void) const |
void | set (size_t idx, const unsigned char &v) |
const unsigned char & | get (size_t idx) const |
unsigned char & | get (size_t idx) |
const unsigned char & | operator[] (size_t idx) const |
unsigned char & | operator[] (size_t idx) |
Static Public Member Functions | |
static netaddr | zero (void) |
makes and returns the zero address | |
static netaddr | any (void) |
makes and returns the any address | |
static netaddr | broadcast (void) |
makes and returns the bcast address | |
static netaddr | localhost (void) |
makes and returns localhost | |
Additional Inherited Members | |
Public Types inherited from scopira::tool::fixed_array< unsigned char, 4 > | |
enum | |
typedef unsigned char | data_type |
typedef unsigned char * | iterator |
typedef const unsigned char * | const_iterator |
Protected Attributes inherited from scopira::tool::fixed_array< unsigned char, 4 > | |
unsigned char | dm_ary [N] |
an ip address. this a simple, fully copiable pod.