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

Expand description

Properties to pass to open and scout functions as configuration and associated constants.

Structs

Constants

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

"auto"

Configures the batch size. String key : "batch_size". Accepted values : <unsigned 16-bit integer>. Default value : 65535.

Configures the maximum size in bytes of the defragmentation buffer at receiving side. Messages that have been fragmented and that are larger than the configured size will be dropped. String key : "defrag_buff_size". Accepted values : <unsigned integer>. Default value : 1073741824 (1GiB).

"false"

Configures the link keep alive expressed in milliseconds. String key : "join_interval". Accepted values : <unsigned integer>. Default value : 2500.

Configures the link keep alive expressed in milliseconds. String key : "link_keep_alive". Accepted values : <unsigned integer>. Default value : 2500 (2.5 seconds).

Configures the link lease expressed in milliseconds. String key : "link_lease". Accepted values : <unsigned integer>. Default value : 10000 (10 seconds).

Configures the buffer size in bytes at receiving side for each link. String key : "link_rx_buff_size". Accepted values : <unsigned integer>. Default value : 16777216 (16MiB).

Indicates if the link state protocol should run. String key : "link_state". Accepted values : "true", "false". Default value : "true".

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

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

Configures the maximum number of links per open session. String key : "max_links". Accepted values : <unsigned integer>. Default value : 4.

Configures the maximum number of simultaneous open sessions. String key : "max_sessions". Accepted values : <unsigned integer>. Default value : 1024.

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

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

The multicast IPv4 address and ports to use for multicast scouting. String key : "multicast_ipv4_address". Accepted values : <ipv4 address>:<port>. Default value : "224.0.0.224:7447".

The multicast IPv6 address and ports to use for multicast scouting. String key : "multicast_ipv6_address". Accepted values : <ipv6 address>:<port>. Default value : "[ff24::224]:7447".

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

Configures the number of open session that can be in pending state. String key : "open_pending". Accepted values : <unsigned integer>. Default value : 1024.

Configures the timeout in milliseconds when opening a link. String key : "open_timeout". Accepted values : <unsigned integer>. Default value : 10000.

The password to use for authentication. String key : "password". Accepted values : <string>.

Indicates if peers should connect to each other when they discover each other (through multicast or gossip discovery). String key : "peers_autoconnect". Accepted values : "true", "false". Default value : "true".

Configures the peer ID. String key : "peer_id". Accepted values : <UUID>.

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

Configures the QoS support. String key : "qos". Accepted values : "true", "false". Default value : "true".

Indicates if routers should connect to each other when they discover each other through gossip discovery. String key : "routers_autoconnect_gossip". Accepted values : "true", "false". Default value : "false".

Indicates if routers should connect to each other when they discover each other through multicast. String key : "routers_autoconnect_multicast". Accepted values : "true", "false". Default value : "false".

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

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

Configures the sequence number resolution. String key : "seq_num_resolution". Accepted values : <unsigned integer>. Default value : 268435456 (2^28).

Indicates if the zero-copy features should be used. String key : "shm". Accepted values : "true", "false". Default value : "true".

The file path containing the TLS root CA certificate. String key : "tls_private_key". Accepted values : <file path>. Default value : None.

The file path containing the TLS server certificate. String key : "tls_private_key". Accepted values : <file path>. Default value : None.

The file path containing the TLS server private key. String key : "tls_private_key". Accepted values : <file path>. Default value : None.

"true"

The user name to use for authentication. String key : "user". Accepted values : <string>.

The file path containing the user password dictionary. String key : "user_password_dictionary". Accepted values : <file path>.

Configures the zenoh version. String key : "version". Accepted values : <unsigned integer>.

Functions

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

Creates a default zenoh net Session configuration.

A set of Key/Value (u64/String) pairs to pass to open
to configure the zenoh-net Session.

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

Type Definitions