X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fdiameter%2FrxSimpleTest%2FMyCommunicator.cpp;h=e48bd01f36ddad6d6183f7beea565b8bb106073e;hp=777ac2f6092ac163ad00d646186d10df6594fea7;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/diameter/rxSimpleTest/MyCommunicator.cpp b/example/diameter/rxSimpleTest/MyCommunicator.cpp index 777ac2f..e48bd01 100755 --- a/example/diameter/rxSimpleTest/MyCommunicator.cpp +++ b/example/diameter/rxSimpleTest/MyCommunicator.cpp @@ -15,7 +15,7 @@ #include -void MyCommunicator::prepareAnswer(anna::diameter::codec::Message *answer, const anna::DataBlock &request) const throw() { +void MyCommunicator::prepareAnswer(anna::diameter::codec::Message *answer, const anna::DataBlock &request) const { // Sequence values (hop-by-hop and end-to-end), session-id and subscription-id avps, are mirrored to the peer which sent the request. // If user wants to test a specific answer without changing it, use send operations better than programming. // Sequence substitution: @@ -62,19 +62,19 @@ void MyCommunicator::prepareAnswer(anna::diameter::codec::Message *answer, const // HTTP void MyCommunicator::eventReceiveMessage(anna::comm::ClientSocket& clientSocket, const anna::comm::Message& message) -throw(anna::RuntimeException) { +noexcept(false) { LOGMETHOD(anna::TraceMethod tm("MyCommunicator", "eventReceiveMessage", ANNA_FILE_LOCATION)); } void MyCommunicator::eventBreakConnection(Server* server) -throw() { +{ LOGMETHOD(anna::TraceMethod tm("MyCommunicator", "eventBreakConnection", ANNA_FILE_LOCATION)); terminate(); anna::comm::Communicator::eventBreakConnection(server); } void MyCommunicator::terminate() -throw() { +{ if(hasRequestedStop() == true) return;