libe3 0.6.1
C++ library for E3AP RAN vendor integration
Loading...
Searching...
No Matches
e3_agent.hpp
Go to the documentation of this file.
1/**
2 * @file e3_agent.hpp
3 * @brief E3Agent - Main façade class for RAN vendors
4 *
5 * This is the ONLY class RAN vendors should interact with. It provides
6 * a clean, stable public API while hiding all internal implementation
7 * details (connectors, encoders, threads, state machines).
8 *
9 * SPDX-FileCopyrightText: Copyright (c) 2026 Northeastern University
10 * SPDX-License-Identifier: Apache-2.0
11 */
12
13#ifndef LIBE3_E3_AGENT_HPP
14#define LIBE3_E3_AGENT_HPP
15
16#include "types.hpp"
17#include "sm_interface.hpp"
18#include <memory>
19#include <functional>
20#include <vector>
21#include <optional>
22#include <chrono>
23
24namespace libe3 {
25
26// Forward declaration - implementation hidden from users
27class E3Interface;
28
29/** Callback for incoming dApp reports (dApp → RAN). Set before start() to handle reports. */
30using DAppReportHandler = std::function<void(const DAppReport&)>;
31
32/** Callback when dApp status changes (connect, disconnect, subscribe, unsubscribe). */
33using DAppStatusChangedHandler = std::function<void()>;
34
35// dApp-side handlers (used when role==DAPP).
36/** Callback for a SetupResponse (RAN → dApp). */
37using SetupResponseHandler = std::function<void(const SetupResponse&)>;
38/** Callback for a SubscriptionResponse (RAN → dApp). */
39using SubscriptionResponseHandler = std::function<void(const SubscriptionResponse&)>;
40/** Callback for an IndicationMessage (RAN → dApp). */
41using IndicationHandler = std::function<void(const IndicationMessage&)>;
42/** Callback for an XAppControlAction (xApp → dApp via the RAN). */
43using XAppControlHandler = std::function<void(const XAppControlAction&)>;
44/** Callback for a MessageAck (RAN → dApp). DEPRECATED TO BE REMOVED: libe3 does not send one. */
45using MessageAckHandler = std::function<void(const MessageAck&)>;
46/** Callback for a ControlResponse: the RAN's answer to a dApp control (RAN → dApp), or a dApp's answer to an xApp control (dApp → RAN). */
47using ControlResponseHandler = std::function<void(const ControlResponse&)>;
48/** Callback for the end of the dApp's session with the RAN, with the reason. */
49using DisconnectHandler = std::function<void(DisconnectReason)>;
50
51/**
52 * @brief E3Agent - Main façade for RAN vendor integration
53 *
54 * This class is the primary entry point for integrating E3AP functionality
55 * into a RAN function (DU, CU-CP, CU-UP). It provides:
56 *
57 * - Simple lifecycle management (init, start, stop, destroy)
58 * - Service Model registration
59 * - Automatic routing of control actions to the correct Service Model
60 * - Thread-safe operation
61 *
62 * **Usage Example:**
63 * ```cpp
64 * // Create agent with configuration
65 * libe3::E3Config config;
66 * config.link_layer = libe3::E3LinkLayer::ZMQ;
67 * config.transport_layer = libe3::E3TransportLayer::IPC;
68 * config.encoding = libe3::EncodingFormat::JSON;
69 * // Set custom ports if needed
70 * config.setup_port = 9990;
71 * config.subscriber_port = 9999;
72 * config.publisher_port = 9991;
73
74 * libe3::E3Agent agent(config);
75
76 * // Register Service Models
77 * agent.register_sm(std::make_unique<MySpectrumSM>());
78
79 * // Start the agent
80 * if (agent.start() != libe3::ErrorCode::SUCCESS) {
81 * // Handle error
82 * }
83
84 * // ... agent runs, handling dApp connections and messages ...
85
86 * // Shutdown
87 * agent.stop();
88 * ```
89 *
90 * **Thread Safety:**
91 * All public methods are thread-safe. The agent manages its own internal
92 * threads for protocol handling.
93 */
94class E3Agent {
95public:
96 /**
97 * @brief Construct an E3Agent with configuration
98 *
99 * @param config Agent configuration
100 */
101 explicit E3Agent(E3Config config = E3Config{});
102
103 /**
104 * @brief Destructor - ensures clean shutdown
105 */
106 ~E3Agent();
107
108 // Non-copyable, movable
109 E3Agent(const E3Agent&) = delete;
110 E3Agent& operator=(const E3Agent&) = delete;
111 /** @brief Move constructor. */
112 E3Agent(E3Agent&&) noexcept;
113 /**
114 * @brief Move assignment.
115 * @return This agent
116 */
117 E3Agent& operator=(E3Agent&&) noexcept;
118
119 // =========================================================================
120 // Lifecycle Management
121 // =========================================================================
122
123 /**
124 * @brief Initialize the agent
125 *
126 * Initializes internal components but does not start processing.
127 * Must be called before start().
128 *
129 * @return ErrorCode::SUCCESS on success
130 * @return ErrorCode::ALREADY_INITIALIZED if already initialized
131 */
132 ErrorCode init();
133
134 /**
135 * @brief Start the agent
136 *
137 * Starts the internal processing threads and begins accepting
138 * dApp connections. If not already initialized, calls init() first.
139 *
140 * @return ErrorCode::SUCCESS on success
141 */
143
144 /**
145 * @brief Stop the agent
146 *
147 * Stops all processing threads and closes connections.
148 * The agent can be restarted with start().
149 */
150 void stop();
151
152 /**
153 * @brief Get current agent state
154 * @return The state the agent is in
155 */
156 AgentState state() const noexcept;
157
158 /**
159 * @brief Check if agent is running
160 * @return true while the agent is running
161 */
162 bool is_running() const noexcept;
163
164 // =========================================================================
165 // Service Model Registration
166 // =========================================================================
167
168 /**
169 * @brief Register a Service Model
170 *
171 * Service Models must be registered before start() is called.
172 * Each SM handles one or more RAN function IDs.
173 *
174 * @param sm Service Model to register (ownership transferred)
175 * @return ErrorCode::SUCCESS on success
176 * @return ErrorCode::SM_ALREADY_REGISTERED if RAN function already has SM
177 * @return ErrorCode::STATE_ERROR if agent is already running
178 */
179 ErrorCode register_sm(std::unique_ptr<ServiceModel> sm);
180
181 /**
182 * @brief Get available RAN function IDs
183 *
184 * Returns the RAN function IDs from all registered Service Models.
185 * @return The RAN function IDs
186 */
187 std::vector<uint32_t> get_available_ran_functions() const;
188
189 /**
190 * @brief Set callback for incoming dApp reports (dApp → RAN).
191 * Call before start(). When a dApp sends a DApp report, this callback is invoked.
192 * @param handler Called with each dApp report
193 */
195
196 /**
197 * @brief Set callback for dApp status changes.
198 * Called when a dApp connects, disconnects, subscribes, or unsubscribes.
199 * Call before start().
200 * @param handler Called after each change
201 */
203
204 // =========================================================================
205 // Manual Operations
206 // =========================================================================
207
208 /**
209 * @brief Send an indication message to a specific dApp
210 *
211 * @param dapp_id Target dApp identifier
212 * @param ran_function_id RAN function identifier
213 * @param data E3SM-encoded indication data
214 * @return ErrorCode::SUCCESS on success
215 */
217 uint32_t dapp_id,
218 uint32_t ran_function_id,
219 const std::vector<uint8_t>& data
220 );
221
222 /**
223 * @brief Send an xApp control action to a specific dApp coming from the E2SM-DAPP.
224 *
225 * @param dapp_id Target dApp identifier
226 * @param ran_function_id RAN function identifier
227 * @param control_data E3SM-encoded control payload
228 * @param sequence_id Correlation id from the E2SM-DAPP control header, so
229 * the dApp can carry it back on the control it re-issues.
230 * @param out_message_id When non-null, receives the E3-MessageID of the control on
231 * success: the `request_id` of the ControlResponse that answers it.
232 * @param request_ack True to ask the dApp for a ControlResponse; it reaches the
233 * handler of set_control_response_handler().
234 * @return ErrorCode::SUCCESS on success
235 */
237 uint32_t dapp_id,
238 uint32_t ran_function_id,
239 const std::vector<uint8_t>& control_data,
240 uint32_t sequence_id,
241 uint32_t* out_message_id = nullptr,
242 bool request_ack = false
243 );
244
245 /**
246 * @brief Send a message acknowledgment.
247 *
248 * DEPRECATED TO BE REMOVED. The answer to a control is a ControlResponse, which a
249 * Service Model sends with ServiceModel::respond_to_control(). A libe3 RAN does not
250 * read a MessageAck from a dApp.
251 * @param request_id ID of the request being acknowledged
252 * @param response_code ResponseCode::POSITIVE (0) or NEGATIVE (1)
253 * @return ErrorCode::SUCCESS on success
254 */
255 ErrorCode send_message_ack(uint32_t request_id, ResponseCode response_code);
256
257 // =========================================================================
258 // dApp-role API (used when E3Config.role == E3Role::DAPP)
259 //
260 // Calling these on a RAN-role agent returns STATE_ERROR. Setters can be
261 // called before start(); they're stored and forwarded to the interface
262 // once init() runs.
263 // =========================================================================
264
265 /**
266 * Set callback for incoming SetupResponse (RAN → dApp).
267 * @param handler Called on every setup, so also when the dApp registers again
268 */
270 /**
271 * Set callback for incoming SubscriptionResponse (RAN → dApp).
272 * @param handler Called with each response
273 */
275 /**
276 * Set callback for incoming IndicationMessage (RAN → dApp).
277 * @param handler Called with each indication
278 */
280 /**
281 * Set callback for incoming XAppControlAction (xApp → dApp via RAN).
282 * @param handler Called with each control action
283 */
285 /**
286 * Set callback for incoming MessageAck (RAN → dApp). DEPRECATED TO BE REMOVED:
287 * libe3 does not send one; another RAN may.
288 * @param handler Called with each acknowledgement
289 */
291 /**
292 * Set callback for incoming ControlResponse, in either role. On a dApp it is the
293 * RAN's answer to a control that asked for one, or the RAN's refusal of any control;
294 * on a RAN it is a dApp's answer to an xApp control that asked for one.
295 * @param handler Called with each response
296 */
298 /**
299 * Set callback for the end of the dApp's session with the RAN: a release for
300 * this dApp, or a closed or failed connection. Fires once, after dapp_id()
301 * has been cleared. Unless E3Config::reconnect_interval_ms is 0 the dApp then
302 * registers again by itself, with a new dapp_id() and no subscriptions: subscribe
303 * again from the setup response handler. It does not after release() or stop().
304 * @param handler Called once per ended session, with the reason
305 */
307
308 /**
309 * @brief dApp identifier assigned by the RAN in SetupResponse.
310 * @return nullopt until setup completes (or on RAN-role agents).
311 */
312 std::optional<uint32_t> dapp_id() const noexcept;
313
314 /**
315 * RAN functions this dApp is currently subscribed to.
316 *
317 * @return The RAN function IDs
318 */
319 std::vector<uint32_t> subscribed_ran_functions() const;
320
321 /**
322 * Subscription IDs this dApp currently holds.
323 *
324 * @return The subscription IDs
325 */
326 std::vector<uint32_t> active_subscription_ids() const;
327
328 /**
329 * @brief Block until the dApp setup handshake completes.
330 * @return SUCCESS on positive SetupResponse, CONNECTION_FAILED on negative,
331 * TIMEOUT if the wait elapses, INVALID_PARAM on RAN-role.
332 * @param timeout How long to wait at most
333 */
334 ErrorCode wait_for_setup(std::chrono::milliseconds timeout);
335
336 /**
337 * @brief Subscribe to a RAN function. Must be called after a positive setup.
338 *
339 * @param ran_function_id RAN function to subscribe to
340 * @param telemetry_ids telemetry identifiers requested
341 * @param control_ids control identifiers requested
342 * @param sub_time seconds to keep the subscription. Over ASN.1 the range is 0 to 86400.
343 * @param periodicity microseconds between indications, 0 = every event.
344 * Over ASN.1 the range is 0 to 60000000. An OCUDU RAN reads the
345 * same number as milliseconds, so pass it what it expects.
346 * @param out_request_id when non-null, receives the assigned E3-MessageID on
347 * success, so the caller can correlate the SubscriptionResponse
348 * (which echoes request_id) back to this subscribe call.
349 * @return SUCCESS once the request is queued; STATE_ERROR on a RAN-role
350 * agent; NOT_INITIALIZED if the agent is not running or setup has
351 * not completed; otherwise the error from queueing the message.
352 */
353 ErrorCode subscribe(uint32_t ran_function_id,
354 std::vector<uint32_t> telemetry_ids,
355 std::vector<uint32_t> control_ids,
356 std::optional<uint32_t> sub_time = std::nullopt,
357 std::optional<uint32_t> periodicity = std::nullopt,
358 uint32_t* out_request_id = nullptr);
359
360 /**
361 * Send a SubscriptionDelete for a previously subscribed RAN function.
362 *
363 * @param ran_function_id RAN function to unsubscribe from
364 * @return ErrorCode::SUCCESS if the delete was queued, an error code otherwise
365 */
366 ErrorCode unsubscribe(uint32_t ran_function_id);
367
368 /**
369 * @brief Send a dApp control action to the RAN.
370 *
371 * @param ran_function_id RAN function the control is for
372 * @param control_id control identifier granted by the RAN
373 * @param action_data opaque E3SM control payload
374 * @param sequence_id correlation id of the xApp procedure this control
375 * re-issues; leave 0 for a control the dApp decided on its own.
376 * @param out_message_id when non-null, receives the assigned E3-MessageID on
377 * success: the `request_id` of the ControlResponse that answers it.
378 * @param request_ack true to ask the RAN for a ControlResponse when the control
379 * has been dealt with. Without it the RAN answers only a control that it
380 * refuses itself (no setup, unknown function or control, no subscription).
381 * @return ErrorCode::SUCCESS if the control was queued, an error code otherwise
382 */
383 ErrorCode send_control(uint32_t ran_function_id,
384 uint32_t control_id,
385 std::vector<uint8_t> action_data,
386 uint32_t sequence_id = 0,
387 uint32_t* out_message_id = nullptr,
388 bool request_ack = false);
389
390 /**
391 * @brief Answer an xApp control that asked for an answer (`XAppControlAction::request_ack`).
392 *
393 * @param request_id `XAppControlAction::message_id` of the control being answered
394 * @param ran_function_id RAN function of the control
395 * @param control_id control the dApp applied, from the list the RAN advertised for the function
396 * @param result Whether the dApp applied the control, why not, and what it reports about it
397 * @return ErrorCode::SUCCESS if the answer was queued; STATE_ERROR on a RAN-role agent;
398 * NOT_INITIALIZED if the agent is not running or setup has not completed;
399 * INVALID_PARAM if the outcome is over MAX_CONTROL_OUTCOME_SIZE
400 */
401 ErrorCode send_control_response(uint32_t request_id,
402 uint32_t ran_function_id,
403 uint32_t control_id,
404 const ControlResult& result);
405
406 /**
407 * @brief Send a dApp report to the RAN.
408 *
409 * @param ran_function_id RAN function the report is for
410 * @param report_data opaque E3SM report payload
411 * @param sequence_id correlation id the dApp assigns to this detection. It
412 * is the head of the loop's chain and is mandatory on the wire.
413 * @param out_message_id when non-null, receives the assigned E3-MessageID on
414 * success, so the caller can correlate a later ack/response back to
415 * this send.
416 * @return ErrorCode::SUCCESS if the report was queued, an error code otherwise
417 */
418 ErrorCode send_report(uint32_t ran_function_id,
419 std::vector<uint8_t> report_data,
420 uint32_t sequence_id,
421 uint32_t* out_message_id = nullptr);
422
423 /**
424 * Send a ReleaseMessage. The dApp stays running until stop() is called.
425 *
426 * @return ErrorCode::SUCCESS if the release was queued, an error code otherwise
427 */
429
430 /**
431 * @brief Get list of registered dApp IDs
432 * @return The dApp IDs
433 */
434 std::vector<uint32_t> get_registered_dapps() const;
435
436 /**
437 * @brief Get subscriptions for a dApp
438 *
439 * @param dapp_id dApp identifier
440 * @return List of RAN function IDs the dApp is subscribed to
441 */
442 std::vector<uint32_t> get_dapp_subscriptions(uint32_t dapp_id) const;
443
444 /**
445 * @brief Get subscribers for a RAN function
446 *
447 * @param ran_function_id RAN function identifier
448 * @return List of dApp IDs subscribed to this RAN function
449 */
450 std::vector<uint32_t> get_ran_function_subscribers(
451 uint32_t ran_function_id
452 ) const;
453
454 /**
455 * @brief Get the RAN functions that currently have at least one subscriber
456 *
457 * RAN role only. Unlike get_available_ran_functions() (which lists every
458 * registered Service Model), this returns only the RAN functions a dApp is
459 * actively subscribed to.
460 *
461 * @return List of RAN function IDs with one or more subscribers
462 */
463 std::vector<uint32_t> get_active_ran_functions() const;
464
465 /**
466 * @brief Get the reporting periodicity a dApp requested for a RAN function
467 *
468 * @return periodicity in microseconds, 0 if not set or subscription not found
469 * @param dapp_id The dApp
470 * @param ran_function_id The RAN function
471 */
473 uint32_t dapp_id, uint32_t ran_function_id
474 ) const;
475
476 /**
477 * @brief Get the telemetry IDs a dApp requested for a RAN function
478 *
479 * @return vector of telemetry IDs (empty if none requested or subscription not found)
480 * @param dapp_id The dApp
481 * @param ran_function_id The RAN function
482 */
483 std::vector<uint32_t> get_subscription_telemetry_ids(
484 uint32_t dapp_id, uint32_t ran_function_id
485 ) const;
486
487 /**
488 * @brief Get the control IDs a dApp requested for a RAN function
489 *
490 * @return vector of control IDs (empty if none requested or subscription not found)
491 * @param dapp_id The dApp
492 * @param ran_function_id The RAN function
493 */
494 std::vector<uint32_t> get_subscription_control_ids(
495 uint32_t dapp_id, uint32_t ran_function_id
496 ) const;
497
498 // =========================================================================
499 // Configuration
500 // =========================================================================
501
502 /**
503 * @brief Get current configuration
504 * @return The configuration the agent was created with
505 */
506 const E3Config& config() const noexcept;
507
508 // =========================================================================
509 // Statistics
510 // =========================================================================
511
512 /**
513 * @brief Get number of registered dApps
514 * @return The number of dApps
515 */
516 size_t dapp_count() const;
517
518 /**
519 * @brief Get total number of active subscriptions
520 * @return The number of subscriptions
521 */
522 size_t subscription_count() const;
523
524private:
525 struct Impl;
526 std::unique_ptr<Impl> impl_;
527};
528
529} // namespace libe3
530
531#endif // LIBE3_E3_AGENT_HPP
std::vector< uint32_t > get_registered_dapps() const
Get list of registered dApp IDs.
Definition e3_agent.cpp:282
E3Agent(E3Agent &&) noexcept
Move constructor.
void set_disconnect_handler(DisconnectHandler handler)
Definition e3_agent.cpp:417
void stop()
Stop the agent.
Definition e3_agent.cpp:139
ErrorCode subscribe(uint32_t ran_function_id, std::vector< uint32_t > telemetry_ids, std::vector< uint32_t > control_ids, std::optional< uint32_t > sub_time=std::nullopt, std::optional< uint32_t > periodicity=std::nullopt, uint32_t *out_request_id=nullptr)
Subscribe to a RAN function. Must be called after a positive setup.
Definition e3_agent.cpp:445
std::vector< uint32_t > get_subscription_telemetry_ids(uint32_t dapp_id, uint32_t ran_function_id) const
Get the telemetry IDs a dApp requested for a RAN function.
Definition e3_agent.cpp:319
void set_xapp_control_handler(XAppControlHandler handler)
Definition e3_agent.cpp:396
void set_setup_response_handler(SetupResponseHandler handler)
Definition e3_agent.cpp:375
ErrorCode wait_for_setup(std::chrono::milliseconds timeout)
Block until the dApp setup handshake completes.
Definition e3_agent.cpp:439
bool is_running() const noexcept
Check if agent is running.
Definition e3_agent.cpp:156
std::vector< uint32_t > subscribed_ran_functions() const
Definition e3_agent.cpp:429
void set_dapp_status_changed_handler(DAppStatusChangedHandler handler)
Set callback for dApp status changes. Called when a dApp connects, disconnects, subscribes,...
Definition e3_agent.cpp:198
std::optional< uint32_t > dapp_id() const noexcept
dApp identifier assigned by the RAN in SetupResponse.
Definition e3_agent.cpp:424
std::vector< uint32_t > get_available_ran_functions() const
Get available RAN function IDs.
Definition e3_agent.cpp:184
std::vector< uint32_t > get_dapp_subscriptions(uint32_t dapp_id) const
Get subscriptions for a dApp.
Definition e3_agent.cpp:289
E3Agent(E3Config config=E3Config{})
Construct an E3Agent with configuration.
Definition e3_agent.cpp:47
ErrorCode release()
Definition e3_agent.cpp:495
std::vector< uint32_t > active_subscription_ids() const
Definition e3_agent.cpp:434
std::vector< uint32_t > get_ran_function_subscribers(uint32_t ran_function_id) const
Get subscribers for a RAN function.
Definition e3_agent.cpp:296
uint32_t get_subscription_periodicity(uint32_t dapp_id, uint32_t ran_function_id) const
Get the reporting periodicity a dApp requested for a RAN function.
Definition e3_agent.cpp:310
ErrorCode register_sm(std::unique_ptr< ServiceModel > sm)
Register a Service Model.
Definition e3_agent.cpp:164
ErrorCode unsubscribe(uint32_t ran_function_id)
Definition e3_agent.cpp:458
size_t dapp_count() const
Get number of registered dApps.
Definition e3_agent.cpp:349
void set_subscription_response_handler(SubscriptionResponseHandler handler)
Definition e3_agent.cpp:382
E3Agent & operator=(const E3Agent &)=delete
ErrorCode send_xapp_control(uint32_t dapp_id, uint32_t ran_function_id, const std::vector< uint8_t > &control_data, uint32_t sequence_id, uint32_t *out_message_id=nullptr, bool request_ack=false)
Send an xApp control action to a specific dApp coming from the E2SM-DAPP.
Definition e3_agent.cpp:238
~E3Agent()
Destructor - ensures clean shutdown.
Definition e3_agent.cpp:53
const E3Config & config() const noexcept
Get current configuration.
Definition e3_agent.cpp:341
std::vector< uint32_t > get_subscription_control_ids(uint32_t dapp_id, uint32_t ran_function_id) const
Get the control IDs a dApp requested for a RAN function.
Definition e3_agent.cpp:328
ErrorCode send_report(uint32_t ran_function_id, std::vector< uint8_t > report_data, uint32_t sequence_id, uint32_t *out_message_id=nullptr)
Send a dApp report to the RAN.
Definition e3_agent.cpp:485
ErrorCode send_control(uint32_t ran_function_id, uint32_t control_id, std::vector< uint8_t > action_data, uint32_t sequence_id=0, uint32_t *out_message_id=nullptr, bool request_ack=false)
Send a dApp control action to the RAN.
Definition e3_agent.cpp:464
E3Agent(const E3Agent &)=delete
ErrorCode send_indication(uint32_t dapp_id, uint32_t ran_function_id, const std::vector< uint8_t > &data)
Send an indication message to a specific dApp.
Definition e3_agent.cpp:209
std::vector< uint32_t > get_active_ran_functions() const
Get the RAN functions that currently have at least one subscriber.
Definition e3_agent.cpp:303
ErrorCode send_control_response(uint32_t request_id, uint32_t ran_function_id, uint32_t control_id, const ControlResult &result)
Answer an xApp control that asked for an answer (XAppControlAction::request_ack).
Definition e3_agent.cpp:476
void set_indication_handler(IndicationHandler handler)
Definition e3_agent.cpp:389
AgentState state() const noexcept
Get current agent state.
Definition e3_agent.cpp:149
void set_dapp_report_handler(DAppReportHandler handler)
Set callback for incoming dApp reports (dApp → RAN). Call before start(). When a dApp sends a DApp re...
Definition e3_agent.cpp:191
ErrorCode init()
Initialize the agent.
Definition e3_agent.cpp:65
void set_message_ack_handler(MessageAckHandler handler)
Definition e3_agent.cpp:403
size_t subscription_count() const
Get total number of active subscriptions.
Definition e3_agent.cpp:361
ErrorCode start()
Start the agent.
Definition e3_agent.cpp:117
void set_control_response_handler(ControlResponseHandler handler)
Definition e3_agent.cpp:410
ErrorCode send_message_ack(uint32_t request_id, ResponseCode response_code)
Send a message acknowledgment.
Definition e3_agent.cpp:269
E3Interface - Internal protocol coordination.
Abstract Service Model interface.
std::function< void(const SubscriptionResponse &)> SubscriptionResponseHandler
Definition e3_agent.hpp:39
ErrorCode
Error codes returned by libe3 operations Use shared error-code list (see libe3/error_codes....
Definition types.hpp:177
std::function< void(const XAppControlAction &)> XAppControlHandler
Definition e3_agent.hpp:43
AgentState
Agent state machine states.
Definition types.hpp:162
std::function< void()> DAppStatusChangedHandler
Definition e3_agent.hpp:33
ResponseCode
E3AP response codes.
Definition types.hpp:103
std::function< void(const DAppReport &)> DAppReportHandler
Definition e3_agent.hpp:30
std::function< void(const SetupResponse &)> SetupResponseHandler
Definition e3_agent.hpp:37
std::function< void(const ControlResponse &)> ControlResponseHandler
Called for a ControlResponse: on a dApp, the RAN's answer to its control; on a RAN,...
Definition e3_agent.hpp:47
std::function< void(const MessageAck &)> MessageAckHandler
Called for a MessageAck. DEPRECATED TO BE REMOVED: libe3 does not send one, it reads one from another...
Definition e3_agent.hpp:45
DisconnectReason
Why a dApp's session with the RAN ended (see DisconnectHandler).
Definition types.hpp:136
std::function< void(DisconnectReason)> DisconnectHandler
Definition e3_agent.hpp:49
std::function< void(const IndicationMessage &)> IndicationHandler
Definition e3_agent.hpp:41
Service Model Interface - Extension point for RAN vendors.
E3AP Control Response structure.
Definition types.hpp:366
What a Service Model answers to a control (see ServiceModel::respond_to_control).
Definition types.hpp:382
E3AP dApp Report structure.
Definition types.hpp:392
E3Agent implementation details.
Definition e3_agent.cpp:24
Configuration for E3Agent.
Definition types.hpp:506
E3AP Indication Message structure.
Definition types.hpp:323
E3AP Message Acknowledgment structure.
Definition types.hpp:351
E3AP Setup Response structure.
Definition types.hpp:273
E3AP Subscription Response structure.
Definition types.hpp:307
E3AP xApp Control Action structure.
Definition types.hpp:405
E3AP Protocol Types - Vendor-neutral type definitions.