Function ros2_medkit_gateway::collect_local_addresses
Defined in File network_utils.hpp
Function Documentation
-
inline std::unordered_set<std::string> ros2_medkit_gateway::collect_local_addresses()
Collect all IPv4 and IPv6 addresses assigned to local network interfaces.
Always includes 127.0.0.1 and ::1 (loopback). Used for self-discovery filtering so the gateway never forwards to itself even if an mDNS response spoofs the name.
- Returns:
Set of IP address strings (e.g. “192.168.1.5”, “::1”)