X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdiameter.comm%2FLocalServer.cpp;h=63741825afea3ebdddf581ee6fad61b92a4f481d;hp=70094d4c35aa56fa43d51279f4778a8c15d6294f;hb=bc8edd446b493d53cd351b7ed4c62dce0e305e0c;hpb=cac05d18bea0e6f086fc59abe2309b8e0bc0bc7d diff --git a/source/diameter.comm/LocalServer.cpp b/source/diameter.comm/LocalServer.cpp index 70094d4..6374182 100644 --- a/source/diameter.comm/LocalServer.cpp +++ b/source/diameter.comm/LocalServer.cpp @@ -387,9 +387,20 @@ void LocalServer::close() throw(anna::RuntimeException) { closeServerSession(serverSession(it)); } +void LocalServer::setClassCodeTimeout(const ClassCode::_v v, const anna::Millisecond & millisecond) throw() { + LOGMETHOD(anna::TraceMethod tttm("diameter::comm::LocalServer", "setClassCodeTimeout", ANNA_FILE_LOCATION)); + + for(serverSession_iterator it = serverSession_begin(); it != serverSession_end(); it++) { + try { + serverSession(it)->setClassCodeTimeout(v, millisecond); + } catch(anna::RuntimeException &ex) { + ex.trace(); + } + } +} void LocalServer::setMaxConnections(int maxConnections) throw(anna::RuntimeException) { - LOGMETHOD(anna::TraceMethod tttm("anna::diameter::comm::LocalServer", "setMaxConnections", ANNA_FILE_LOCATION)); + LOGMETHOD(anna::TraceMethod tttm("diameter::comm::LocalServer", "setMaxConnections", ANNA_FILE_LOCATION)); // Negative & initial if(maxConnections < 0) {