Scouting
-
template<class C, class D>
void zenoh::scout(Config &&config, C &&on_hello, D &&on_drop, ScoutOptions &&options = ScoutOptions::create_default(), ZResult *err = nullptr) Scout for zenoh entities in the network.
-
class Hello : public zenoh::Owned<::z_owned_hello_t>
Hellomessage returned by a zenoh entity as a reply to a “scout” message.Methods
-
inline WhatAmI get_whatami() const
Get the type of the entity.
- Returns:
zenoh::WhatAmIof the entity.
-
inline std::vector<std::string_view> get_locators() const
Get the array of locators of the entity.
- Returns:
the array of locators of the entity.
-
inline WhatAmI get_whatami() const
-
struct ScoutOptions
Options to be passed to
scoutoperation.Fields
-
size_t timeout_ms = 1000
The maximum duration in ms the scouting can take.
-
What what = What::Z_WHAT_ROUTER_PEER
Type of entities to scout for.
Methods
-
static inline ScoutOptions create_default()
Create default option settings.
-
size_t timeout_ms = 1000