#include <MyCommunicator.hpp>
-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:
// 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)
}
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;