X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FMyCommunicator.hpp;h=f4bdaa33c0f97822f855cef17da17f2020935d96;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hp=d336c7d8af223a72b1076d19f01c908024494422;hpb=752438861433c3789eb1b0d9f2c15e15037595e6;p=anna.git diff --git a/example/diameter/launcher/MyCommunicator.hpp b/example/diameter/launcher/MyCommunicator.hpp index d336c7d..f4bdaa3 100644 --- a/example/diameter/launcher/MyCommunicator.hpp +++ b/example/diameter/launcher/MyCommunicator.hpp @@ -15,7 +15,7 @@ #include // Process -#include "MyHandler.hpp" +#include class MyCommunicator : public anna::comm::Communicator { @@ -24,13 +24,15 @@ public: a_contexts("Contexts") {;} - void prepareAnswer(anna::diameter::codec::Message *answer, const anna::DataBlock &request) const throw(); - void terminate() throw(); + void prepareAnswer(anna::diameter::codec::Message *answer, const anna::DataBlock &request) const ; + void terminate() ; private: + using anna::comm::Communicator::eventBreakConnection; + anna::ThreadData a_contexts; - void eventReceiveMessage(anna::comm::ClientSocket&, const anna::comm::Message&) throw(anna::RuntimeException); - void eventBreakConnection(Server* server) throw(); + void eventReceiveMessage(anna::comm::ClientSocket&, const anna::comm::Message&) noexcept(false); + void eventBreakConnection(Server* server) ; }; #endif