|
libe3 0.6.1
C++ library for E3AP RAN vendor integration
|
Configuration for creating an E3Agent from C. More...
#include <c_api.h>
Public Attributes | |
| const char * | ran_identifier |
| RAN identifier; NULL keeps the default. | |
| int | link_layer |
| 0=ZMQ, 1=POSIX, -1=default | |
| int | transport_layer |
| 0=SCTP, 1=TCP, 2=IPC, -1=default | |
| uint16_t | setup_port |
| Port of the setup channel (SCTP and TCP); 0 keeps the default. | |
| uint16_t | subscriber_port |
| Port of the subscriber channel (SCTP and TCP); 0 keeps the default. | |
| uint16_t | publisher_port |
| Port of the publisher channel (SCTP and TCP); 0 keeps the default. | |
| const char * | setup_endpoint |
| Endpoint of the setup channel; NULL keeps the default. | |
| const char * | subscriber_endpoint |
| Endpoint of the subscriber channel; NULL keeps the default. | |
| const char * | publisher_endpoint |
| Endpoint of the publisher channel; NULL keeps the default. | |
| int | encoding |
| 0=ASN1, 1=JSON, 2=PROTOBUF, -1=default | |
| size_t | io_threads |
| Number of I/O threads; 0=default. | |
| int | log_level |
| Logging level; -1=default. | |
| const char * | log_path |
| Log file; NULL=auto (/tmp/e3_ROLE[_ID]_EUID.log). | |
| int | pin_io_threads |
| Pin the I/O threads when non-zero; 0=no pinning. | |
| int | io_thread_affinity |
| Logical core to pin to; Linux only, best-effort. | |
| int | set_dapp_idle_timeout |
| Apply dapp_idle_timeout_s when non-zero; 0=keep the library default (1800 s). | |
| uint32_t | dapp_idle_timeout_s |
| Seconds without a message from a dApp before the RAN releases and removes it; 0=never. | |
Configuration for creating an E3Agent from C.
All string pointers are copied by the library; the caller may free them after the call. Use NULL for optional strings to keep library defaults.
Enum values: link_layer: 0=ZMQ, 1=POSIX. transport_layer: 0=SCTP, 1=TCP, 2=IPC. encoding: 0=ASN1, 1=JSON. Use -1 for link_layer, transport_layer, encoding, log_level to keep defaults. Use 0 for setup_port, subscriber_port, publisher_port to keep defaults. Set set_dapp_idle_timeout to apply dapp_idle_timeout_s; a zeroed struct keeps the default.
| uint32_t e3_config_t::dapp_idle_timeout_s |
| int e3_config_t::encoding |
| int e3_config_t::io_thread_affinity |
| size_t e3_config_t::io_threads |
| const char* e3_config_t::log_path |
| int e3_config_t::pin_io_threads |
| const char* e3_config_t::publisher_endpoint |
| uint16_t e3_config_t::publisher_port |
| const char* e3_config_t::ran_identifier |
| int e3_config_t::set_dapp_idle_timeout |
Apply dapp_idle_timeout_s when non-zero; 0=keep the library default (1800 s).
| const char* e3_config_t::setup_endpoint |
| uint16_t e3_config_t::setup_port |
| const char* e3_config_t::subscriber_endpoint |
| uint16_t e3_config_t::subscriber_port |
| int e3_config_t::transport_layer |