|
Safe Communication Framework 0.1.0 build feea4f9
ERTMS/ETCS safe communication (Subset-037 EuroRadio, Subset-098 RBC/RBC), CENELEC EN 50128 SIL 4 oriented
|
Application Layer Entity — config + peer-map data model. More...
Go to the source code of this file.
Functions | |
| static bool | parse_peer_line (const char *line, safecomm_ale_peer_t *out) |
| static safecomm_status_t | load_peer_map (const char *path, safecomm_ale_t *ale) |
| safecomm_status_t | safecomm_ale_from_config (const safecomm_config_t *cfg, safecomm_ale_t *out) |
| Build an ALE from a loaded config (ale.* keys) + its peer map. | |
| const safecomm_ale_peer_t * | safecomm_ale_lookup (const safecomm_ale_t *ale, uint32_t peer_id) |
| Resolve a peer id to its A/B endpoint pair. | |
Application Layer Entity — config + peer-map data model.
The listener / relay I/O lives in the consumer (e.g. CommServer); this module owns the non-vital data model: parse ale.* config and the peer map, resolve a peer id to its A/B endpoints.
Definition in file ale.c.
|
static |
|
static |
| safecomm_status_t safecomm_ale_from_config | ( | const safecomm_config_t * | cfg, |
| safecomm_ale_t * | out ) |
Build an ALE from a loaded config (ale.* keys) + its peer map.
| cfg | loaded configuration (ale.listen_host, ale.listen_port, ale.peer_map_file). Non-NULL. |
| out | receives the ALE. Non-NULL. |
| const safecomm_ale_peer_t * safecomm_ale_lookup | ( | const safecomm_ale_t * | ale, |
| uint32_t | peer_id ) |