X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;ds=sidebyside;f=include%2Fanna%2Fdiameter.comm%2FEngine.hpp;h=4416becb7eb5c18ff8cf572d42bafb1a6a6f5b93;hb=refs%2Fheads%2Fdynamic_procedure_library;hp=742c0fc5fdccd0b05010602463726f1b0bbbe796;hpb=2921c651c9945cefec0715167201596aaa079e8d;p=anna.git diff --git a/include/anna/diameter.comm/Engine.hpp b/include/anna/diameter.comm/Engine.hpp index 742c0fc..4416bec 100644 --- a/include/anna/diameter.comm/Engine.hpp +++ b/include/anna/diameter.comm/Engine.hpp @@ -101,37 +101,34 @@ class Engine : public anna::app::Component { public: /** - Diameter application node realm name (used to be the site domain name). + Diameter application node origin realm - @param name Diameter application node realm name. Used in order to configure the Origin-Realm for outgoing messages. + @param originRealm Used to configure the Origin-Realm for outgoing messages. If not configured or empty string provided, host domainname will be set. */ - void setRealm(const std::string & name) throw(); - + void setOriginRealm(const std::string & originRealm) throw(); /** - Gets the configured diameter application node realm name. + Diameter application origin host - @return Diameter application node realm name. + @param originHost Used to configure the Origin-Host for outgoing messages. + If not configured or empty string provided, hostname (system name) will be set. */ - const std::string & getRealm() const throw() { return a_realm; } - + void setOriginHost(const std::string & originHost) throw(); /** - Diameter application host name as solved by #anna::functions::getHostname() + Gets the configured diameter application node origin realm - @param name Host name. Used in order to configure the Origin-Host for outgoing messages. - If not configured or empty string provided, hostname (system name) will be set. + @return Diameter application node origin realm */ - void setHost(const std::string & name) throw(); - + const std::string & getOriginRealm() const throw() { return a_originRealm; } /** - Gets the configured diameter application host name. + Gets the configured diameter application origin host - @return Diameter application host name. + @return Diameter application node origin host */ - const std::string & getHost() const throw() { return a_host; } + const std::string & getOriginHost() const throw() { return a_originHost; } /** @@ -707,14 +704,21 @@ protected: */ virtual void releaseLocalServer(LocalServer*) throw() {;} + // Gets the base protocol codec engine used internally. + // This engine is initializaed on constructor with the base protocol dictionary. + // The reason to not reuse any other codec engine from the application is to have this one isolated with no interference + // regarding configuration changes (validation depth/mode, fix mode, etc.). + // + // @return Pointer to the internal base protocol codec engine + codec::Engine *getBaseProtocolCodecEngine() const throw() { return const_cast(&a_baseProtocolCodecEngine); } private: // Internal use: tracing and readCEA/DPA/DWA codec::Engine a_baseProtocolCodecEngine; - std::string a_realm; - std::string a_host; + std::string a_originRealm; + std::string a_originHost; bool a_autoBind; int a_numberOfClientSessionsPerServer; @@ -754,14 +758,6 @@ private: void assertBaseProtocolHealth() throw(anna::RuntimeException); // checks the dictionary - // Gets the base protocol codec engine used internally. - // This engine is initializaed on constructor with the base protocol dictionary. - // The reason to not reuse any other codec engine from the application is to have this one isolated with no interference - // regarding configuration changes (validation depth/mode, fix mode, etc.). - // - // @return Pointer to the internal base protocol codec engine - codec::Engine *getBaseProtocolCodecEngine() const throw() { return const_cast(&a_baseProtocolCodecEngine); } - ////////////////////////// // CLIENT FUNCTIONALITY // //////////////////////////