logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ost::IPV4Mask - Internet addresses used specifically as masking addresses (such as ' 255.255.255.0') are

Author

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

GNU CommonC++                                    Sun Dec 27 2020                                ost::IPV4Mask(3)

Constructor & Destructor Documentation

ost::IPV4Mask::IPV4Mask(constchar*mask)
       Create the mask from a null terminated ASCII string such as '255.255.255.128'.

       Parametersmask null terminated ASCII mask string.

Detailed Description

       Internet addresses used specifically as masking addresses (such as ' 255.255.255.0') are held in the
       IPV4Mask derived object.

       The separate 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.

       Author
           David Sugar dyfet@ostel.com

       Internet Address Mask such as subnet masks.

Member Function Documentation

IPV4Address&ost::IPV4Mask::operator=(unsignedlongaddr)[inline]
       Allows assignment from the return of functions like inet_addr() or htonl()

       References ost::IPV4Address::operator=().

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.

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

   Friends__EXPORTIPV4Hostoperator& (const IPV4Host &addr, const IPV4Mask &mask)
           Masks are usually used to coerce host addresses into a specific router or class domain.

   AdditionalInheritedMembers

See Also