18.2.3.10.2. IsAddressDefined

inline bool eprosima::fastrtps::rtps::IsAddressDefined(const Locator_t &loc)

Auxiliary method to check that IP address is not invalid (0).

Parameters

loc – Locator which IP address is going to be checked.

Returns

true if IP address is defined (not 0).

Returns

false otherwise.