#include <address.h>
Inheritance diagram for ost::IPV4Mask::
Public Methods | |
IPV4Mask (const char *mask) | |
Create the mask from a null terminated ASCII string such as "255.255.255.128". More... | |
IPV4Address& | operator= (unsigned long addr) |
Allows assignment from the return of functions like inet_addr() or htonl(). More... | |
Friends | |
__EXPORT IPV4Host | operator & (const IPV4Host &addr, const IPV4Mask &mask) |
Masks are usually used to coerce host addresses into a specific router or class domain. More... |
The seperate class is used so that C++ type casting can automatically determine when an IPV4Address object is really a mask address object rather than simply using the base class. This also allows manipulative operators for address masking to operate only when presented with a Masked address as well as providing cleaner and safer source.
|
Create the mask from a null terminated ASCII string such as "255.255.255.128".
|
|
Allows assignment from the return of functions like inet_addr() or htonl().
Reimplemented from ost::IPV4Address. |
|
Masks are usually used to coerce host addresses into a specific router or class domain. This can be done by taking the Inet Host Address object and "and"ing it with an address mask. This operation can be directly expressed in C++ through the & operator.
|