void MyLocalServer::eventRequest(anna::diameter::comm::ServerSession *serverSession, const anna::DataBlock &message)
-throw(anna::RuntimeException) {
+noexcept(false) {
LOGMETHOD(anna::TraceMethod tm("launcher::MyLocalServer", "eventRequest", ANNA_FILE_LOCATION));
// Performance stats:
Launcher& my_app = static_cast <Launcher&>(anna::app::functions::getApp());
if(my_node->logEnabled()) {
anna::diameter::comm::Server *usedServer = entity->getLastUsedResource();
anna::diameter::comm::ClientSession *usedClientSession = usedServer ? usedServer->getLastUsedResource() : NULL;
- std::string detail = usedClientSession ? usedClientSession->asString() : "<null client session>"; // esto no deberia ocurrir
+ std::string detail = usedClientSession ? usedClientSession->asString() : "[null client session]"; // esto no deberia ocurrir
my_node->writeLogFile(message, (success ? "fwd2e" : "fwd2eError"), detail); // forwarded
}
// Testing:
- anna::testing::TestManager::instantiate().receiveMessage(message, serverSession);
+ anna::testing::TestManager::instantiate().receiveDiameterMessage(message, serverSession);
return;
}
} else {
// Testing:
- anna::testing::TestManager::instantiate().receiveMessage(message, serverSession);
+ anna::testing::TestManager::instantiate().receiveDiameterMessage(message, serverSession);
return; // nothing done
}
if(analysisOK && programmed) a_reactingAnswers.nextMessage(code);
// Testing:
- anna::testing::TestManager::instantiate().receiveMessage(message, serverSession);
+ anna::testing::TestManager::instantiate().receiveDiameterMessage(message, serverSession);
}
void MyLocalServer::eventResponse(const anna::diameter::comm::Response &response)
-throw(anna::RuntimeException) {
+noexcept(false) {
LOGMETHOD(anna::TraceMethod tm("launcher::MyLocalServer", "eventResponse", ANNA_FILE_LOCATION));
Launcher& my_app = static_cast <Launcher&>(anna::app::functions::getApp());
anna::diameter::comm::OriginHost * my_node = my_app.getOriginHost(getEngine()->getOriginHostName());
anna::diameter::comm::Message* request = const_cast<anna::diameter::comm::Message*>(response.getRequest());
const anna::DataBlock* message = response.getMessage();
const anna::diameter::comm::ServerSession *serverSession = static_cast<const anna::diameter::comm::ServerSession *>(response.getSession());
- bool isBindResponse = (code == anna::diameter::comm::ClassCode::Bind);
- bool isApplicationMessage = (code == anna::diameter::comm::ClassCode::ApplicationMessage);
bool contextExpired = (result == anna::diameter::comm::Response::ResultCode::Timeout);
bool isUnavailable = (result == anna::diameter::comm::Response::ResultCode::DiameterUnavailable);
bool isOK = (result == anna::diameter::comm::Response::ResultCode::Success);
anna::diameter::comm::ClientSession *usedClientSession = my_node->getCommEngine()->findClientSession(request->getRequestClientSessionKey());
std::string detail;
- if(my_node->logEnabled()) detail = usedClientSession ? usedClientSession->asString() : "<null client session>"; // this should not happen
+ if(my_node->logEnabled()) detail = usedClientSession ? usedClientSession->asString() : "[null client session]"; // this should not happen
anna::diameter::comm::Message *msg;
try {
}
// Testing:
- if(isOK) anna::testing::TestManager::instantiate().receiveMessage(*message, serverSession);
+ if(isOK) anna::testing::TestManager::instantiate().receiveDiameterMessage(*message, serverSession);
}
void MyLocalServer::eventUnknownResponse(anna::diameter::comm::ServerSession *serverSession, const anna::DataBlock &message)
-throw(anna::RuntimeException) {
+noexcept(false) {
LOGMETHOD(anna::TraceMethod tm("launcher::MyLocalServer", "eventUnknownResponse", ANNA_FILE_LOCATION));
// Performance stats:
Launcher& my_app = static_cast <Launcher&>(anna::app::functions::getApp());
}
void MyLocalServer::eventDPA(anna::diameter::comm::ServerSession *serverSession, const anna::DataBlock &message)
-throw(anna::RuntimeException) {
+noexcept(false) {
LOGMETHOD(anna::TraceMethod tm("launcher::MyLocalServer", "eventDPA", ANNA_FILE_LOCATION));
// Performance stats:
Launcher& my_app = static_cast <Launcher&>(anna::app::functions::getApp());
if(my_node->logEnabled()) my_node->writeLogFile(message, "recvfc", serverSession->asString());
// Testing:
- anna::testing::TestManager::instantiate().receiveMessage(message, serverSession);
+ anna::testing::TestManager::instantiate().receiveDiameterMessage(message, serverSession);
}