projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove operation help.
[anna.git]
/
example
/
diameter
/
launcher
/
MyHandler.cpp
diff --git
a/example/diameter/launcher/MyHandler.cpp
b/example/diameter/launcher/MyHandler.cpp
index
bfbda6f
..
6638fc3
100644
(file)
--- a/
example/diameter/launcher/MyHandler.cpp
+++ b/
example/diameter/launcher/MyHandler.cpp
@@
-17,6
+17,7
@@
// Process
#include <MyHandler.hpp>
#include <Launcher.hpp>
// Process
#include <MyHandler.hpp>
#include <Launcher.hpp>
+#include <EventOperation.hpp>
void MyHandler::evRequest(anna::comm::ClientSocket& clientSocket, const anna::http::Request& request)
void MyHandler::evRequest(anna::comm::ClientSocket& clientSocket, const anna::http::Request& request)
@@
-33,6
+34,7
@@
throw(anna::RuntimeException) {
);
std::string body_content;
body_content.assign(body.getData(), body.getSize());
);
std::string body_content;
body_content.assign(body.getData(), body.getSize());
+ auto json_body = nlohmann::json::parse(body_content);
// Operation:
std::string response_content;
// Operation:
std::string response_content;
@@
-41,7
+43,7
@@
throw(anna::RuntimeException) {
try {
Launcher& my_app = static_cast <Launcher&>(anna::app::functions::getApp());
try {
Launcher& my_app = static_cast <Launcher&>(anna::app::functions::getApp());
- opOk = my_app.eventOperation(
body_content
, response_content);
+ opOk = my_app.eventOperation(
EventOperation::json2piped(json_body)
, response_content);
} catch(RuntimeException &ex) {
ex.trace();
opOk = false;
} catch(RuntimeException &ex) {
ex.trace();
opOk = false;