[][src]Module zenoh::net::config

Constants and helpers to build the configuration Properties to pass to open.

Constants

ZN_ADD_TIMESTAMP_DEFAULT
ZN_ADD_TIMESTAMP_KEY

Indicates if data messages should be timestamped. Accepted values : "true", "false". Default value : "false".

ZN_FALSE

"false"

ZN_LISTENER_KEY

A locator to listen on. Accepted values : <locator> (ex: "tcp/10.10.10.10:7447"). Default value : None. Multiple values accepted.

ZN_LOCAL_ROUTING_DEFAULT
ZN_LOCAL_ROUTING_KEY

Indicates if local writes/queries should reach local subscribers/queryables. Accepted values : "true", "false". Default value : "true".

ZN_MODE_DEFAULT
ZN_MODE_KEY

The library mode. Accepted values : "peer", "client". Default value : "peer".

ZN_MULTICAST_ADDRESS_DEFAULT
ZN_MULTICAST_ADDRESS_KEY

The multicast address and ports to use for multicast scouting. Accepted values : <ip address>:<port>. Default value : "224.0.0.224:7447".

ZN_MULTICAST_INTERFACE_DEFAULT
ZN_MULTICAST_INTERFACE_KEY

The network interface to use for multicast scouting. Accepted values : "auto", <ip address>, <interface name>. Default value : "auto".

ZN_MULTICAST_SCOUTING_DEFAULT
ZN_MULTICAST_SCOUTING_KEY

Activates/Desactivates multicast scouting. Accepted values : "true", "false". Default value : "true".

ZN_PASSWORD_KEY

The password to use for authentication. Accepted values : <string>. Default value : None.

ZN_PEER_KEY

The locator of a peer to connect to. Accepted values : <locator> (ex: "tcp/10.10.10.10:7447"). Default value : None. Multiple values accepted.

ZN_SCOUTING_DELAY_DEFAULT
ZN_SCOUTING_DELAY_KEY

In peer mode, the period dedicated to scouting first remote peers before doing anything else. Accepted values : <float in seconds>. Default value : "0.2".

ZN_SCOUTING_TIMEOUT_DEFAULT
ZN_SCOUTING_TIMEOUT_KEY

In client mode, the period dedicated to scouting a router before failing. Accepted values : <float in seconds>. Default value : "3.0".

ZN_TRUE

"true"

ZN_USER_KEY

The user name to use for authentication. Accepted values : <string>. Default value : None.

Functions

client

Creates a default 'client' mode zenoh net Session configuration.

default

Creates a default zenoh net Session configuration.

empty

Creates an empty zenoh net Session configuration.

key_to_string
peer

Creates a default 'peer' mode zenoh net Session configuration.

to_string