Shared zCm domain endpoint resolution helpers.
Go to the source code of this file.
◆ ZCM_DOMAIN_ENDPOINT_MAX
| #define ZCM_DOMAIN_ENDPOINT_MAX 512 |
◆ ZCM_DOMAIN_NAME_MAX
| #define ZCM_DOMAIN_NAME_MAX 256 |
◆ ZCM_DOMAIN_PATH_MAX
| #define ZCM_DOMAIN_PATH_MAX 1024 |
◆ zcm_domain_info_t
query_endpoint is the advertised/shared endpoint used by CLI tools to find the active broker. bind_endpoint is the local endpoint a broker instance on this host should bind to if it becomes the active broker.
◆ zcm_domain_info_load()
When ZCMBROKER/ZCMBROKER_ENDPOINT is set, both endpoints resolve to that explicit override and has_domain_mapping is 0.
Otherwise the current domain is read from ZCMDOMAIN and the advertised endpoint is loaded from ZCmDomains, while the bind endpoint is rewritten to use a local host identity for this machine.
- Parameters
-
| out_info | Output structure to populate. |
- Returns
- 0 on success, -1 on failure.
◆ zcm_domain_info_update_published_host()
This only applies when has_domain_mapping is nonzero.
- Parameters
-
| info | Resolved domain info. |
- Returns
- 0 on success, -1 on failure.