29 uint16_t il_base, uint16_t ctc_base, uint16_t util_base);
35 if ((arg == NULL) || (out_site == NULL))
39 if ((strcmp(arg,
"WEST") == 0) || (strcmp(arg,
"west") == 0))
44 if ((strcmp(arg,
"EAST") == 0) || (strcmp(arg,
"east") == 0))
122 const char *value = getenv(env_var_name);
137 uint16_t il_base, uint16_t ctc_base, uint16_t util_base)
#define RTE_EXAMPLE_C_FOR_A_TRAIN_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_B_IL_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_CTC_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_B_CTC_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_A_CTC_PORT_OFFSET
#define RTE_EXAMPLE_AB_CROSSCOMPARE_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_A_IL_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_IL_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_A_UTIL_PORT_OFFSET
#define RTE_EXAMPLE_WEST_PORT_BASE
#define RTE_EXAMPLE_C_FOR_BROKER_CTC_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_B_TRAIN_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_TRAIN_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_BROKER_IL_PORT_OFFSET
#define RTE_EXAMPLE_LOCALHOST
#define RTE_EXAMPLE_EAST_PORT_BASE
#define RTE_EXAMPLE_AB_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_BROKER_TRAIN_PORT_OFFSET
#define RTE_EXAMPLE_C_FOR_B_UTIL_PORT_OFFSET
static uint16_t relay_port_offset(rte_example_relay_kind_t kind, uint16_t train_base, uint16_t il_base, uint16_t ctc_base, uint16_t util_base)
uint16_t site_config_c_port_for_broker(rte_example_site_t site, rte_example_relay_kind_t gw_kind)
ADR-038: the status/broker service's LISTEN port for one local gateway service to CONNECT and publish...
uint16_t site_config_c_port_for_ctc(rte_example_site_t site)
const char * site_config_name(rte_example_site_t site)
uint16_t site_config_c_port_for_il(rte_example_site_t site)
bool site_config_parse(const char *arg, rte_example_site_t *out_site)
Parses a site name argument ("WEST"/"EAST", case-insensitive).
uint16_t site_config_c_port_for_b(rte_example_site_t site, rte_example_relay_kind_t kind)
uint16_t site_config_c_port_for_train(rte_example_site_t site)
C's single listen port for the Train sim, for this site (ADR-036: one multiplexed connection carries ...
uint16_t site_config_ab_port(rte_example_site_t site)
static uint16_t site_port_base(rte_example_site_t site)
const char * site_config_host(const char *env_var_name)
Resolves a CONNECT-role link's target host for this process.
uint16_t site_config_c_port_for_a(rte_example_site_t site, rte_example_relay_kind_t kind)
C's listen port for A's dedicated kind relay link, for this site (rte_example_relay_kind_t's own doc)...
uint16_t site_config_ab_crosscompare_port(rte_example_site_t site)
West/East site identity and the per-site config derived from it (ports, container host lookup) - see ...
rte_example_relay_kind_t
Which client type a C<->A/C<->B relay link/port belongs to - this project's own dedicated-channel-per...
@ RTE_EXAMPLE_RELAY_KIND_UTIL
@ RTE_EXAMPLE_RELAY_KIND_CTC
@ RTE_EXAMPLE_RELAY_KIND_IL
@ RTE_EXAMPLE_RELAY_KIND_TRAIN