X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2FRealmNode.hpp;h=7f239ca44d89364ba12fd981ac8ed4238df28c44;hb=603b76b5dc02acdfd87c58c51b6d48ae1858f58d;hp=cf2af40f43319ca932e2ed7feb2560b84d5705d0;hpb=74730c7d0e4f713c932d6b06a07644d1c3c6c6c1;p=anna.git diff --git a/example/diameter/launcher/RealmNode.hpp b/example/diameter/launcher/RealmNode.hpp index cf2af40..7f239ca 100644 --- a/example/diameter/launcher/RealmNode.hpp +++ b/example/diameter/launcher/RealmNode.hpp @@ -25,6 +25,9 @@ namespace anna { namespace codec { class Engine; } + namespace stack { + class Dictionary; + } namespace comm { class Message; } @@ -74,15 +77,17 @@ class RealmNode { int a_burstPopCounter; public: - RealmNode(const std::string &originRealm, unsigned int applicationId, anna::diameter::codec::Engine *codecEngine); + RealmNode(const std::string &originRealm, unsigned int applicationId, const anna::diameter::stack::Dictionary *baseProtocolDictionary); ~RealmNode() {;} - std::string asString() const throw(); + const std::string &getName() const throw() { return a_originRealm; } // Core resources: MyDiameterEngine* getMyDiameterEngine() const throw() { return a_commEngine; } + unsigned int getApplicationId() const throw() { return a_applicationId; } anna::diameter::codec::Engine *getCodecEngine() const throw() { return a_codecEngine; } - void createEntity(const std::string &entityRepresentation, const anna::Millisecond &bindTimeout, const anna::Millisecond &applicationTimeout) throw(); + + void createEntity(const std::string &entityRepresentation, const anna::Millisecond &bindTimeout, const anna::Millisecond &applicationTimeout) throw(anna::RuntimeException); MyDiameterEntity *getEntity() const throw() { return a_entity; } void startDiameterServer(const std::string &serverRepresentation, int sessions, const anna::Millisecond &inactivityTimeout) throw(anna::RuntimeException); MyLocalServer* getDiameterServer() throw() { return a_diameterServer; } @@ -116,7 +121,7 @@ public: int stopBurst() throw(); // returns remaining on cycle, or -1 if burst already stopped bool burstActive() const throw() { return a_burstActive; } bool sendBurstMessage(bool anyway = false) throw(); - std::string lookBurst(int order) const throw(); + std::string lookBurst(int order = -1) const throw(); std::string gotoBurst(int order) throw(); anna::xml::Node* asXML(anna::xml::Node* parent) const throw();