Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
6e404991
Commit
6e404991
authored
Jul 19, 2022
by
ferrerod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define CommFailure event signal and subscription
parent
7ac990fa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
src/amf-app/amf_event.cpp
src/amf-app/amf_event.cpp
+6
-0
src/amf-app/amf_event.hpp
src/amf-app/amf_event.hpp
+12
-0
src/amf-app/amf_event_sig.hpp
src/amf-app/amf_event_sig.hpp
+8
-1
No files found.
src/amf-app/amf_event.cpp
View file @
6e404991
...
...
@@ -51,3 +51,9 @@ bs2::connection amf_event::subscribe_ue_connectivity_state(
const
ue_connectivity_state_sig_t
::
slot_type
&
sig
)
{
return
ue_connectivity_state
.
connect
(
sig
);
}
//------------------------------------------------------------------------------
bs2
::
connection
amf_event
::
subscribe_ue_communication_failure
(
const
ue_communication_failure_sig_t
::
slot_type
&
sig
)
{
return
ue_communication_failure
.
connect
(
sig
);
}
\ No newline at end of file
src/amf-app/amf_event.hpp
View file @
6e404991
...
...
@@ -90,6 +90,16 @@ class amf_event {
bs2
::
connection
subscribe_ue_connectivity_state
(
const
ue_connectivity_state_sig_t
::
slot_type
&
sig
);
/*
* Subscribe to UE Communication Failure Notification signal
* @param [const ue_communication_failure_sig_t::slot_type&] sig: slot_type
* parameter
* @return boost::signals2::connection: the connection between the signal and
* the slot
*/
bs2
::
connection
subscribe_ue_communication_failure
(
const
ue_communication_failure_sig_t
::
slot_type
&
sig
);
private:
ue_location_report_sig_t
ue_location_report
;
// Signal for UE Location Report
ue_reachability_status_sig_t
...
...
@@ -98,5 +108,7 @@ class amf_event {
ue_registration_state
;
// Signal for UE Registration State Report
ue_connectivity_state_sig_t
ue_connectivity_state
;
// Signal for UE Connectivity State Report
ue_communication_failure_sig_t
ue_communication_failure
;
// Signal for UE Communication Failure Report
};
}
// namespace amf_application
src/amf-app/amf_event_sig.hpp
View file @
6e404991
...
...
@@ -33,6 +33,7 @@
#include <boost/signals2.hpp>
#include <string>
#include "UserLocation.h"
#include "CommunicationFailure.h"
namespace
bs2
=
boost
::
signals2
;
...
...
@@ -69,7 +70,13 @@ typedef bs2::signal_type<
bs2
::
keywords
::
mutex_type
<
bs2
::
dummy_mutex
>>::
type
ue_connectivity_state_sig_t
;
// TODO: Communication-Failure-Report
// Signal for Communication Failure Report
// SUPI, Communication Failure codes, HTTP version
typedef
bs2
::
signal_type
<
void
(
std
::
string
,
oai
::
amf
::
model
::
CommunicationFailure
,
uint8_t
),
bs2
::
keywords
::
mutex_type
<
bs2
::
dummy_mutex
>>::
type
ue_communication_failure_sig_t
;
// TODO: UEs-In-Area-Report
// TODO: Loss-of-Connectivity
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment