Skip to content

QuantumGate::IPAddress::IsClassC

Karel Donk edited this page Dec 23, 2021 · 2 revisions

Checks whether the IP address is a class C address.

Signature

constexpr bool IsClassC() const noexcept;

Return values

Returns true if the IP address is a class C address, otherwise false. Class C is defined as IPv4 addresses ranging from 192.0.0.0 to 223.255.255.255. This represents all of the addresses with a 1 for their first two bits, and a 0 for their third bit.

Clone this wiki locally