X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FLauncher.hpp;h=d550ceb8a664307ec00d4ca6a817f4cb5810fcf4;hb=5f094136b1817b5c4d14dbcc33c9819a8569cd1e;hp=9a61627a76c69c6abe90b51219b73a8e86dbcc69;hpb=752438861433c3789eb1b0d9f2c15e15037595e6;p=anna.git diff --git a/example/diameter/launcher/Launcher.hpp b/example/diameter/launcher/Launcher.hpp index 9a61627..d550ceb 100644 --- a/example/diameter/launcher/Launcher.hpp +++ b/example/diameter/launcher/Launcher.hpp @@ -15,6 +15,7 @@ #include // Project +#include #include #include #include @@ -61,6 +62,10 @@ class Launcher : public anna::comm::Application { int a_otaRequest; int a_burstPopCounter; + // comm Messages factory: + anna::Recycler a_commMessages; + anna::Recycler a_codecMessages; + anna::comm::ServerSocket* a_httpServerSocket; // HTTP MyLocalServer* a_diameterLocalServer; // DIAMETER void checkTimeMeasure(const char * commandLineParameter, bool optional = true) throw(anna::RuntimeException); @@ -90,6 +95,12 @@ public: void signalUSR2() throw(anna::RuntimeException); std::string help() const throw(); + // Messages factory: + anna::diameter::comm::Message *createCommMessage() throw(anna::RuntimeException); + void releaseCommMessage(anna::diameter::comm::Message*) throw(); + anna::diameter::codec::Message *createCodecMessage() throw(anna::RuntimeException); + void releaseCodecMessage(anna::diameter::codec::Message*) throw(); + // helpers bool getDataBlockFromHexFile(const std::string &pathfile, anna::DataBlock &db) const throw();