Struct rmw_discovery_options_s

Struct Documentation

struct rmw_discovery_options_s

Used to specify the options that control how discovery is performed.

Public Members

rmw_automatic_discovery_range_t automatic_discovery_range

How far to allow discovering nodes.

This needs to be set to something other than RMW_AUTOMATIC_DISCOVERY_RANGE_NOT_SET, because that is just a sentinel value to see if this was set, but rmw implementations should error if this is what is given during context init.

rmw_peer_address_t *static_peers

The list of manually-specified peers to perform static discovery with.

Each peer is specified as a hostname or an IP address (IPv4 and IPv6 are both acceptable), or a subnet, e.g. 192.168.0.0/24.

size_t static_peers_count

The number of manually-specified peers.

rcutils_allocator_t allocator

The allocator used to allocate static_peers.