X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fmain.cpp;h=f03a832358a0fdf91734bee0c5ff7567d7f417cf;hb=20a26fbedc55c5211a005b80098b094f8ff3fa4c;hp=2916704fbbf791e6966c8d0c9cd16e985fc6ea65;hpb=4456556fc4cd3d24eab8d555acceae339d476c5b;p=anna.git diff --git a/example/diameter/launcher/main.cpp b/example/diameter/launcher/main.cpp index 2916704..f03a832 100644 --- a/example/diameter/launcher/main.cpp +++ b/example/diameter/launcher/main.cpp @@ -768,7 +768,7 @@ std::string Launcher::help() const throw() { result += "\n"; result += "\nAnswer programming in hexadecimal is not really neccessary (you could use send primitives) and also"; result += "\nis intended to be used with decoded messages in order to replace things like hop by hop, end to end,"; - result += "\nsubscriber id, session id, etc."; + result += "\nsubscriber id, session id, etc. Anyway you could use 'decode' operation and then program the xml created."; result += "\n"; result += "\nIf a request is received, answer map (built with 'answerxml<[2c] or 2e>' operations) will be"; result += "\n checked to find a corresponding programmed answer to be replied(*). If no ocurrence is found,"; @@ -1479,7 +1479,7 @@ throw(anna::RuntimeException) { anna::diameter::stack::Engine &stackEngine = anna::diameter::stack::Engine::instantiate(); try { - anna::diameter::stack::Dictionary * d = stackEngine.createDictionary(0 /* stack id */); + anna::diameter::stack::Dictionary * d = stackEngine.createDictionary(0 /* stack id; its value don't mind, is not used (ADL is monostack) */); // Analyze comma-separated list: anna::Tokenizer lst; std::string dictionaryParameter = cl.getValue("dictionary"); @@ -1503,7 +1503,7 @@ throw(anna::RuntimeException) { if(lst.size() > 1) { std::string all_in_one = "./dictionary-all-in-one.xml"; - std::ofstream out(all_in_one, std::ifstream::out); + std::ofstream out(all_in_one.c_str(), std::ifstream::out); std::string buffer = d->asXMLString(); out.write(buffer.c_str(), buffer.size()); out.close();