Function rmw_zenoh_cpp::zenoh_router_check_attempts
Defined in File zenoh_config.hpp
Function Documentation
-
std::optional<uint64_t> rmw_zenoh_cpp::zenoh_router_check_attempts()
============================================================================= Get the number of times rmw_init should try to connect to a zenoh router based on the environment variable ZENOH_ROUTER_CHECK_ATTEMPTS.
The behavior is as follows:
If not set or 0, the max value is returned.
If less than 0, std::nullopt is returned.
Else value of environment variable is returned.
- Returns:
The number of times to try connecting to a zenoh router and std::nullopt if establishing a connection to a router is not required.