libe3 0.6.1
C++ library for E3AP RAN vendor integration
Loading...
Searching...
No Matches
e3_config_t Struct Reference

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.

Detailed Description

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.

Definition at line 250 of file c_api.h.

Member Data Documentation

◆ dapp_idle_timeout_s

uint32_t e3_config_t::dapp_idle_timeout_s

Seconds without a message from a dApp before the RAN releases and removes it; 0=never.

Definition at line 269 of file c_api.h.

◆ encoding

int e3_config_t::encoding

0=ASN1, 1=JSON, 2=PROTOBUF, -1=default

Definition at line 260 of file c_api.h.

◆ io_thread_affinity

int e3_config_t::io_thread_affinity

Logical core to pin to; Linux only, best-effort.

Definition at line 266 of file c_api.h.

◆ io_threads

size_t e3_config_t::io_threads

Number of I/O threads; 0=default.

Definition at line 261 of file c_api.h.

◆ link_layer

int e3_config_t::link_layer

0=ZMQ, 1=POSIX, -1=default

Definition at line 252 of file c_api.h.

◆ log_level

int e3_config_t::log_level

Logging level; -1=default.

Definition at line 262 of file c_api.h.

◆ log_path

const char* e3_config_t::log_path

Log file; NULL=auto (/tmp/e3_ROLE[_ID]_EUID.log).

Definition at line 263 of file c_api.h.

◆ pin_io_threads

int e3_config_t::pin_io_threads

Pin the I/O threads when non-zero; 0=no pinning.

Definition at line 265 of file c_api.h.

◆ publisher_endpoint

const char* e3_config_t::publisher_endpoint

Endpoint of the publisher channel; NULL keeps the default.

Definition at line 259 of file c_api.h.

◆ publisher_port

uint16_t e3_config_t::publisher_port

Port of the publisher channel (SCTP and TCP); 0 keeps the default.

Definition at line 256 of file c_api.h.

◆ ran_identifier

const char* e3_config_t::ran_identifier

RAN identifier; NULL keeps the default.

Definition at line 251 of file c_api.h.

◆ set_dapp_idle_timeout

int e3_config_t::set_dapp_idle_timeout

Apply dapp_idle_timeout_s when non-zero; 0=keep the library default (1800 s).

Definition at line 268 of file c_api.h.

◆ setup_endpoint

const char* e3_config_t::setup_endpoint

Endpoint of the setup channel; NULL keeps the default.

Definition at line 257 of file c_api.h.

◆ setup_port

uint16_t e3_config_t::setup_port

Port of the setup channel (SCTP and TCP); 0 keeps the default.

Definition at line 254 of file c_api.h.

◆ subscriber_endpoint

const char* e3_config_t::subscriber_endpoint

Endpoint of the subscriber channel; NULL keeps the default.

Definition at line 258 of file c_api.h.

◆ subscriber_port

uint16_t e3_config_t::subscriber_port

Port of the subscriber channel (SCTP and TCP); 0 keeps the default.

Definition at line 255 of file c_api.h.

◆ transport_layer

int e3_config_t::transport_layer

0=SCTP, 1=TCP, 2=IPC, -1=default

Definition at line 253 of file c_api.h.


The documentation for this struct was generated from the following file: