CSubNet::CSubNet

Construct from a given network start and mask.

Synopsis

Declared in <netaddress.h>

CSubNet(
    CNetAddr const& addr,
    CNetAddr const& mask);

Parameters

NameDescription
addr [in]Network start. Must be IPv4 or IPv6, otherwise an invalid subnet is created.
mask [in]Network mask, must be of the same type as addr and not contain 0-bits followed by 1-bits. Otherwise an invalid subnet is created.