ost::IPV4Mask(3) | Library Functions Manual | ost::IPV4Mask(3) |
NAME¶
ost::IPV4Mask - Internet addresses used specifically as masking addresses (such as '255.255.255.0') are held in the IPV4Mask derived object.
SYNOPSIS¶
#include <address.h> Inherits ost::IPV4Address.Public Member Functions¶
IPV4Mask (const char *mask)
Friends¶
__EXPORT IPV4Host operator& (const IPV4Host &addr, const IPV4Mask &mask)
Additional Inherited Members¶
Detailed Description¶
Internet addresses used specifically as masking addresses (such as '255.255.255.0') are held in the IPV4Mask derived object.
David Sugar dyfet@ostel.com Internet Address
Mask such as subnet masks.
Constructor & Destructor Documentation¶
ost::IPV4Mask::IPV4Mask (const char *mask)¶
Create the mask from a null terminated ASCII string such as '255.255.255.128'. Parameters:mask null terminated ASCII mask
string.
Member Function Documentation¶
IPV4Address& ost::IPV4Mask::operator= (unsigned longaddr) [inline]¶
Allows assignment from the return of functions like inet_addr() or htonl() Reimplemented from ost::IPV4Address. References ost::IPV4Address::operator=().Friends And Related Function Documentation¶
__EXPORT IPV4Host operator& (const IPV4Host &addr, const IPV4Mask &mask) [friend]¶
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. Returns:a internet host address that has been
masked.
Parameters:
addr host address to be masked by
subnet.
mask inetnet mask address object to mask by.
Author¶
Generated automatically by Doxygen for GNU CommonC++ from the source code.Sat Jun 23 2012 | GNU CommonC++ |