Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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-SMF
Commits
a5d8fcac
Commit
a5d8fcac
authored
Jul 23, 2021
by
Fang-WANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send json array to web
parent
6f4baad5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/smf_app/smf_app.cpp
src/smf_app/smf_app.cpp
+5
-2
No files found.
src/smf_app/smf_app.cpp
View file @
a5d8fcac
...
@@ -1311,10 +1311,13 @@ bool smf_app::handle_nf_status_notification(
...
@@ -1311,10 +1311,13 @@ bool smf_app::handle_nf_status_notification(
for
(
auto
address
:
nfIpv4Addresses
)
{
for
(
auto
address
:
nfIpv4Addresses
)
{
json_data
[
"ipv4Addresses"
].
push_back
(
inet_ntoa
(
address
));
json_data
[
"ipv4Addresses"
].
push_back
(
inet_ntoa
(
address
));
}
}
my_json
json_data_arr
=
nlohmann
::
json
::
array
();
json_data_arr
.
push_back
(
json_data
);
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"json_data %s
\n
"
,
json_data
.
dump
().
c_str
());
"json_data %s
\n
"
,
json_data
_arr
.
dump
().
c_str
());
update_client
(
json_data
.
dump
().
length
(),
json_data
.
dump
().
c_str
());
update_client
(
json_data
_arr
.
dump
().
length
(),
json_data_arr
.
dump
().
c_str
());
return
true
;
return
true
;
}
}
...
...
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