InetMaskAddress(3cc)

InetMaskAddress3cc

Internet addresses used specifically as masking addresses (such as ' 255.255.255.0') are held in the inetmaskaddress derived object. internet address mask such as subnet masks.

Usage

#include <socket.h>

Inherits InetAddress.

Public Methods

InetMaskAddress (const char *mask)
Create the mask from a null terminated ASCII string such as '255.255.255.128'. InetAddress & operator= (unsigned long addr)
Allows assignment from the return of functions like inet_addr() or htonl().

Friends

InetHostAddress operator & (const InetHostAddress &addr, const InetMaskAddress &mask)
Masks are usually used to coerce host addresses into a specific router or class domain.

Detailed description

Internet addresses used specifically as masking addresses (such as ' 255.255.255.0') are held in the InetMaskAddress derived object. Internet Address Mask such as subnet masks.

The seperate class is used so that C++ type casting can automatically determine when an InetAddress 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.

Author: David Sugar <[email protected]>

Constructor & destructor documentation

InetMaskAddress::InetMaskAddress (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

InetAddress& InetMaskAddress::operator= (unsigned long addr) [inline]

Allows assignment from the return of functions like inet_addr() or htonl().

Reimplemented from InetAddress.

Author

Generated automatically by Doxygen for CommonC++ from the source code.

From libcommoncpp2-dev 1.0.13-5 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.