libe3py 0.2.6__tar.gz → 0.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {libe3py-0.2.6 → libe3py-0.2.7}/PKG-INFO +1 -1
- libe3py-0.2.7/VERSION +1 -0
- {libe3py-0.2.6 → libe3py-0.2.7}/swig/e3_dapp_session.cpp +7 -0
- {libe3py-0.2.6 → libe3py-0.2.7}/swig/e3_dapp_session.hpp +3 -1
- libe3py-0.2.6/VERSION +0 -1
- {libe3py-0.2.6 → libe3py-0.2.7}/LICENSE +0 -0
- {libe3py-0.2.6 → libe3py-0.2.7}/NOTICE +0 -0
- {libe3py-0.2.6 → libe3py-0.2.7}/cmake/libe3SwigModule.cmake +0 -0
- {libe3py-0.2.6 → libe3py-0.2.7}/pyproject.toml +0 -0
- {libe3py-0.2.6 → libe3py-0.2.7}/python/CMakeLists.txt +0 -0
- {libe3py-0.2.6 → libe3py-0.2.7}/python/README.md +0 -0
- {libe3py-0.2.6 → libe3py-0.2.7}/swig/README.md +0 -0
- {libe3py-0.2.6 → libe3py-0.2.7}/swig/libe3.i +0 -0
- {libe3py-0.2.6 → libe3py-0.2.7}/swig/libe3_swig.hpp +0 -0
libe3py-0.2.7/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.2.7
|
|
@@ -123,6 +123,13 @@ DAppSession::DAppSession(libe3::E3Config config, std::size_t queue_capacity) {
|
|
|
123
123
|
impl->enqueue(std::move(ev));
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
+
agent.set_disconnect_handler([impl](libe3::DisconnectReason reason) {
|
|
127
|
+
E3Event ev;
|
|
128
|
+
ev.kind = E3_EVENT_DISCONNECT;
|
|
129
|
+
ev.disconnect_reason = static_cast<int>(reason);
|
|
130
|
+
impl->enqueue(std::move(ev));
|
|
131
|
+
});
|
|
132
|
+
|
|
126
133
|
agent.set_message_ack_handler([impl](const libe3::MessageAck& ack) {
|
|
127
134
|
E3Event ev;
|
|
128
135
|
ev.kind = E3_EVENT_MESSAGE_ACK;
|
|
@@ -62,7 +62,8 @@ enum E3EventKind {
|
|
|
62
62
|
E3_EVENT_XAPP_CONTROL = 2, ///< xApp → dApp XAppControlAction
|
|
63
63
|
E3_EVENT_SUBSCRIPTION_RESPONSE = 3, ///< RAN → dApp SubscriptionResponse
|
|
64
64
|
E3_EVENT_SETUP_RESPONSE = 4, ///< RAN → dApp SetupResponse
|
|
65
|
-
E3_EVENT_MESSAGE_ACK = 5
|
|
65
|
+
E3_EVENT_MESSAGE_ACK = 5, ///< RAN → dApp MessageAck
|
|
66
|
+
E3_EVENT_DISCONNECT = 6 ///< the RAN is gone; see E3Event::disconnect_reason
|
|
66
67
|
};
|
|
67
68
|
|
|
68
69
|
/**
|
|
@@ -84,6 +85,7 @@ struct E3Event {
|
|
|
84
85
|
uint32_t request_id{0}; ///< request/message id (subscription response / ack / xApp control)
|
|
85
86
|
uint32_t sequence_id{0}; ///< loop correlation id (xApp control); echo it on the control you re-issue
|
|
86
87
|
int response_code{-1}; ///< 0=positive, 1=negative, -1=n/a
|
|
88
|
+
int disconnect_reason{-1}; ///< disconnect: 0=released by RAN, 1=connection lost, -1=n/a
|
|
87
89
|
std::vector<uint8_t> payload; ///< opaque E3SM bytes (indication / xApp control)
|
|
88
90
|
long periodicity{-1}; ///< granted interval in microseconds (subscription response), -1 = not reported
|
|
89
91
|
bool has_telemetry_granted{false}; ///< telemetry_granted was reported
|
libe3py-0.2.6/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.2.6
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|