X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FMyCommunicator.cpp;fp=example%2Fdiameter%2Flauncher%2FMyCommunicator.cpp;h=2f180cceef8a279f3ce04f27d5db020e7736d635;hp=d3c13709393a901a38df8e323672cea67dafff21;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/diameter/launcher/MyCommunicator.cpp b/example/diameter/launcher/MyCommunicator.cpp index d3c1370..2f180cc 100644 --- a/example/diameter/launcher/MyCommunicator.cpp +++ b/example/diameter/launcher/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,7 +62,7 @@ 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)); if(clientSocket.support(anna::http::Transport::className()) == false) @@ -73,14 +73,14 @@ throw(anna::RuntimeException) { } 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;