X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdiameter.comm%2FServer.cpp;h=32b3efa2daee15f9fcc6c78176cfcee42c495d0c;hb=f27dc23fc3f214dfaac416f0bdf13f3e942ba15a;hp=1ba83567fe36c4c448c9e48f87469a813e978183;hpb=028006fc5ee34967fcfffff24a2b1c8b410c26c3;p=anna.git diff --git a/source/diameter.comm/Server.cpp b/source/diameter.comm/Server.cpp index 1ba8356..32b3efa 100644 --- a/source/diameter.comm/Server.cpp +++ b/source/diameter.comm/Server.cpp @@ -43,9 +43,9 @@ void Server::initializeStatisticResources() throw() { std::string accName = "remote server '"; accName += anna::functions::socketLiteralAsString(a_socket.first, a_socket.second); accName += "' from origin-realm '"; - accName += a_engine ? a_engine->getOriginRealm() : "unknown"; // it should be known (createServer) + accName += a_engine ? a_engine->getOriginRealmName() : "unknown"; // it should be known (createServer) accName += "' and origin-host '"; - accName += a_engine ? a_engine->getOriginHost() : "unknown"; // it should be known (createServer) + accName += a_engine ? a_engine->getOriginHostName() : "unknown"; // it should be known (createServer) accName += "'"; a_messageStatistics.initialize(accName); } @@ -124,7 +124,7 @@ bool Server::send(const Message* message, int socketId) throw(anna::RuntimeExcep try { // Send: - const Response* response = a_lastUsedResource->send(message); + a_lastUsedResource->send(message); return true; // no matter if response is NULL (answers, i.e.) or not. } catch(anna::RuntimeException &ex) { LOGDEBUG( @@ -146,12 +146,11 @@ bool Server::send(const Message* message, int socketId) throw(anna::RuntimeExcep bool Server::broadcast(const Message* message) throw(anna::RuntimeException) { LOGMETHOD(anna::TraceMethod tttm("diameter::comm::Server", "broadcast", ANNA_FILE_LOCATION)); assertReady(); - const Response* response; bool allok = true; for(std::vector::iterator it = begin(); it != end(); it++) { try { - response = (*it)->send(message); + (*it)->send(message); } catch(anna::RuntimeException &ex) { ex.trace(); allok = false;