class libfwbuilder::Netmask


Inheritance:


Public Methods

[more]explicit Netmask()
[more]explicit Netmask(const string &) throw(FWException)
[more] Netmask(const unsigned char* data, size_t len) throw(FWException)
[more]explicit Netmask(const IPAddress &)
This constructor creates natural classful netmask for given IP address
[more]Netmask& operator=(const string &s) throw(FWException)

Protected Methods

[more]virtual void validate() throw(FWException)


Inherited from IPAddress:

Public Methods

ounsigned const int operator[](size_t pos) const
o operator string() const
o operator ulong() const
ostring toString() const

Protected Fields

ounsigned int octets[4]


Documentation

ovirtual void validate() throw(FWException)

oexplicit Netmask()

oexplicit Netmask(const string &) throw(FWException)

o Netmask(const unsigned char* data, size_t len) throw(FWException)

oexplicit Netmask(const IPAddress &)
This constructor creates natural classful netmask for given IP address

Cheatsheet: Net Host Total Net Addr Addr Addr Number Class Range NetMask Bits Bits of hosts ---------------------------------------------------------- A 0-127 255.0.0.0 8 24 16777216 B 128-191 255.255.0.0 16 16 65536 C 192-254 255.255.255.0 24 8 256

(ref: RFC1375 & www.isi.edu/in-notes/iana/assignments/ipv4-address-space)

oNetmask& operator=(const string &s) throw(FWException)


This class has no child classes.
Friends:
bool operator==(const Netmask &a, const Netmask &b)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.