X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdiameter.comm%2FResponse.cpp;fp=source%2Fdiameter.comm%2FResponse.cpp;h=9676a0319cf9edd4f50487519d40dcd01f3d5bc5;hp=b2d108dbe820652981bc419b15dd2462923964ab;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/diameter.comm/Response.cpp b/source/diameter.comm/Response.cpp index b2d108d..9676a03 100644 --- a/source/diameter.comm/Response.cpp +++ b/source/diameter.comm/Response.cpp @@ -27,7 +27,7 @@ diameter::comm::Response::response_pool diameter::comm::Response::st_responses; // Se invocan desde diameter::comm::Session //---------------------------------------------------------------------------------------- diameter::comm::Response* diameter::comm::Response::instance(const ClassCode::_v & classCode, const HopByHop hopByHop) -throw(anna::RuntimeException) { +noexcept(false) { diameter::comm::Response* result = st_responses.create(); result->a_classCode = classCode; result->a_hopByHop = hopByHop; @@ -41,7 +41,7 @@ throw(anna::RuntimeException) { } void diameter::comm::Response::release(diameter::comm::Response* response) -throw() { +{ try { st_responses.release(response); } catch(anna::RuntimeException& ex) { @@ -58,7 +58,7 @@ diameter::comm::Response::Response() : } void diameter::comm::Response::clear() -throw() { +{ a_resultCode = ResultCode::Undefined; a_session = NULL; a_timer = NULL; @@ -66,12 +66,12 @@ throw() { } void diameter::comm::Response::activateTimer() -throw(anna::RuntimeException) { +noexcept(false) { a_timer = TimerManager::instantiate().createTimer(this); } void diameter::comm::Response::cancelTimer() -throw() { +{ if(a_timer != NULL) { try { TimerManager::instantiate().cancelTimer(a_timer); @@ -84,13 +84,13 @@ throw() { } const char* diameter::comm::Response::asText(const ResultCode::_v rc) -throw() { +{ static const char* text [] = { "Undefined", "Success", "Timeout", "DiameterUnavailable" }; return text [rc]; } //bool diameter::comm::Response::isKeepAlive() const -//throw() { +//{ // if (a_request) { // if (a_request->getCommandId() == diameter::helpers::base::COMMANDID__Device_Watchdog_Request) // return true; @@ -100,7 +100,7 @@ throw() { //} string diameter::comm::Response::asString() const -throw() { +{ string result("diameter::comm::Response { ClassCode: "); result += ClassCode::asText(a_classCode); result += anna::functions::asString(" | HopByHop: %u", a_hopByHop);