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
3937bfb1
Commit
3937bfb1
authored
Jun 04, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add error handling for Curl multi
parent
2716d4c0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
169 additions
and
113 deletions
+169
-113
src/smf_app/smf_sbi.cpp
src/smf_app/smf_sbi.cpp
+163
-107
src/smf_app/smf_sbi.hpp
src/smf_app/smf_sbi.hpp
+6
-6
No files found.
src/smf_app/smf_sbi.cpp
View file @
3937bfb1
This diff is collapsed.
Click to expand it.
src/smf_app/smf_sbi.hpp
View file @
3937bfb1
...
@@ -176,9 +176,9 @@ class smf_sbi {
...
@@ -176,9 +176,9 @@ class smf_sbi {
* @param [uint32_t* ] promise_id: pointer to the promise id
* @param [uint32_t* ] promise_id: pointer to the promise id
* @param [const std::string&] method: HTTP method
* @param [const std::string&] method: HTTP method
* @param [bool] is_multipart: use multipart or json format
* @param [bool] is_multipart: use multipart or json format
* @return
void
* @return
true if a handle was created successfully, otherwise return false
*/
*/
void
curl_create_handle
(
bool
curl_create_handle
(
const
std
::
string
&
uri
,
const
char
*
data
,
uint32_t
data_len
,
const
std
::
string
&
uri
,
const
char
*
data
,
uint32_t
data_len
,
std
::
string
&
response_data
,
uint32_t
*
promise_id
,
std
::
string
&
response_data
,
uint32_t
*
promise_id
,
const
std
::
string
&
method
,
bool
is_multipart
);
const
std
::
string
&
method
,
bool
is_multipart
);
...
@@ -191,9 +191,9 @@ class smf_sbi {
...
@@ -191,9 +191,9 @@ class smf_sbi {
* @param [uint32_t* ] promise_id: pointer to the promise id
* @param [uint32_t* ] promise_id: pointer to the promise id
* @param [const std::string&] method: HTTP method
* @param [const std::string&] method: HTTP method
* @param [bool] is_multipart: use multipart or json format
* @param [bool] is_multipart: use multipart or json format
* @return
void
* @return
true if a handle was created successfully, otherwise return false
*/
*/
void
curl_create_handle
(
bool
curl_create_handle
(
const
std
::
string
&
uri
,
const
std
::
string
&
data
,
const
std
::
string
&
uri
,
const
std
::
string
&
data
,
std
::
string
&
response_data
,
uint32_t
*
promise_id
,
std
::
string
&
response_data
,
uint32_t
*
promise_id
,
const
std
::
string
&
method
);
const
std
::
string
&
method
);
...
@@ -204,9 +204,9 @@ class smf_sbi {
...
@@ -204,9 +204,9 @@ class smf_sbi {
* @param [std::string &] response_data: response data
* @param [std::string &] response_data: response data
* @param [uint32_t* ] promise_id: pointer to the promise id
* @param [uint32_t* ] promise_id: pointer to the promise id
* @param [const std::string&] method: HTTP method
* @param [const std::string&] method: HTTP method
* @return
void
* @return
true if a handle was created successfully, otherwise return false
*/
*/
void
curl_create_handle
(
bool
curl_create_handle
(
const
std
::
string
&
uri
,
std
::
string
&
response_data
,
uint32_t
*
promise_id
,
const
std
::
string
&
uri
,
std
::
string
&
response_data
,
uint32_t
*
promise_id
,
const
std
::
string
&
method
);
const
std
::
string
&
method
);
...
...
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