Hard refactoring. CodecEngine is associated to a unique stack.
[anna.git] / example / diameter / launcher / RealmNode.hpp
index 774e858..7f239ca 100644 (file)
@@ -53,6 +53,7 @@ class RealmNode {
 
   // main
   std::string a_originRealm;
+  unsigned int a_applicationId;
 
   // Timming
   anna::Millisecond a_allowedInactivityTime;
@@ -76,12 +77,16 @@ class RealmNode {
   int a_burstPopCounter;
 
 public:
-  RealmNode(const std::string &originRealm, anna::diameter::codec::Engine *codecEngine, const anna::diameter::stack::Dictionary *baseProtocolDictionary);
+  RealmNode(const std::string &originRealm, unsigned int applicationId, const anna::diameter::stack::Dictionary *baseProtocolDictionary);
   ~RealmNode() {;}
 
+  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(anna::RuntimeException);
   MyDiameterEntity *getEntity() const throw() { return a_entity; }
   void startDiameterServer(const std::string &serverRepresentation, int sessions, const anna::Millisecond &inactivityTimeout) throw(anna::RuntimeException);