asio C++ library

PrevUpHomeNext

ip::address_v4::is_multicast

Determine whether the address is a multicast address.

bool is_multicast() const;

This function tests whether the address is in the multicast address block 224.0.0.0/4, which corresponds to the address range 224.0.0.0 - 239.255.255.255.

Return Value

(to_uint() & 0xF0000000) == 0xE0000000.


PrevUpHomeNext