X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FMyDiameterEntity.hpp;h=9453d647df25067cc06eb2cf89dbe7fb2710f92f;hb=84c30c372cf2926a138a6d51a52d56f3b2a63804;hp=fe23cfad2b96efc910fe419fa3602350c80a4659;hpb=752438861433c3789eb1b0d9f2c15e15037595e6;p=anna.git diff --git a/example/diameter/launcher/MyDiameterEntity.hpp b/example/diameter/launcher/MyDiameterEntity.hpp index fe23cfa..9453d64 100644 --- a/example/diameter/launcher/MyDiameterEntity.hpp +++ b/example/diameter/launcher/MyDiameterEntity.hpp @@ -15,9 +15,19 @@ // Process #include "ProgrammedAnswers.hpp" +namespace anna { + namespace diameter { + namespace codec { + class Engine; + } + } +} class MyDiameterEntity : public anna::diameter::comm::Entity { + anna::diameter::codec::Engine * a_codecEngine; // for automatic answers (failed-avp), write logs, etc. + + void eventRequestRetransmission(const anna::diameter::comm::ClientSession *, anna::diameter::comm::Message*) throw(); void eventResponse(const anna::diameter::comm::Response&) throw(anna::RuntimeException); void eventRequest(anna::diameter::comm::ClientSession *, const anna::DataBlock&) throw(anna::RuntimeException); void eventUnknownResponse(anna::diameter::comm::ClientSession *, const anna::DataBlock&) throw(anna::RuntimeException); @@ -29,6 +39,7 @@ class MyDiameterEntity : public anna::diameter::comm::Entity { public: ProgrammedAnswers a_reactingAnswers; + void setCodecEngine(anna::diameter::codec::Engine *codecEngine) throw() { a_codecEngine = codecEngine; a_reactingAnswers.setCodecEngine(codecEngine); } ProgrammedAnswers *getReactingAnswers() throw() { return (ProgrammedAnswers *)&a_reactingAnswers; } };