Remove dynamic exceptions
[anna.git] / include / anna / diameter.comm / Engine.hpp
index 6a7d133..e8febc4 100644 (file)
@@ -79,17 +79,17 @@ class LocalServer;
  *     private:
  *        anna::Recycler<MyEntity> a_entities;
  *
- *        anna::diameter::comm::Entity* allocateEntity () throw () { return a_entities.create (); }
+ *        anna::diameter::comm::Entity* allocateEntity () { return a_entities.create (); }
  *
- *        void releaseEntity (anna::diameter::comm::Entity* entity) throw () {
+ *        void releaseEntity (anna::diameter::comm::Entity* entity) {
  *           MyEntity* aux = static_cast <MyEntity*> (entity);
  *           a_entities.release (aux);
  *        }
  *
  *
- *        anna::diameter::comm::LocalServer* allocateLocalServer () throw () { return a_localServers.create (); }
+ *        anna::diameter::comm::LocalServer* allocateLocalServer () { return a_localServers.create (); }
  *
- *        void releaseLocalServer (anna::diameter::comm::LocalServer* localServer) throw () {
+ *        void releaseLocalServer (anna::diameter::comm::LocalServer* localServer) {
  *           MyLocalServer* aux = static_cast <MyLocalServer*> (localServer);
  *           a_localServers.release (aux);
  *        }
@@ -106,7 +106,7 @@ public:
      @param originRealmName Used to configure the Origin-Realm for outgoing messages.
      If not configured or empty string provided, host domainname will be set.
   */
-  void setOriginRealmName(const std::string & originRealmName) throw();
+  void setOriginRealmName(const std::string & originRealmName) ;
 
   /**
      Diameter application origin host
@@ -114,21 +114,21 @@ public:
      @param originHostName Used to configure the Origin-Host for outgoing messages.
      If not configured or empty string provided, hostname (system name) will be set.
   */
-  void setOriginHostName(const std::string & originHostName) throw();
+  void setOriginHostName(const std::string & originHostName) ;
 
   /**
      Gets the configured diameter application node origin realm
 
      @return Diameter application node origin realm
   */
-  const std::string & getOriginRealmName() const throw() { return a_originRealm; }
+  const std::string & getOriginRealmName() const { return a_originRealm; }
 
   /**
      Gets the configured diameter application origin host
 
      @return Diameter application node origin host
   */
-  const std::string & getOriginHostName() const throw() { return a_originHost; }
+  const std::string & getOriginHostName() const { return a_originHost; }
 
 
   /**
@@ -141,13 +141,13 @@ public:
    *
    * @param autoRecovery Auto recovery indicator. True by default.
    */
-  void raiseAutoRecovery(bool autoRecovery = true) throw(anna::RuntimeException);
+  void raiseAutoRecovery(bool autoRecovery = true) noexcept(false);
 
   /**
    * Returns automatic bind indicator for client-sessions. By default \em true will be used.
    * \return Value for automatic connection bind.
    */
-  bool getAutoBind() const throw() { return a_autoBind; }
+  bool getAutoBind() const { return a_autoBind; }
 
   /**
    * Sets automatic connection bind indicator for client-sessions. If not asigned, it will be \em true.
@@ -156,7 +156,7 @@ public:
    * In order to change bind timer, first client-session must be created without autobind, modify time
    * parameter and then invoking bind.
    */
-  void setAutoBind(const bool autoBind) throw() { a_autoBind = autoBind; }
+  void setAutoBind(const bool autoBind) { a_autoBind = autoBind; }
 
   /**
      Sets the milliseconds wait to achieve a client connection to server by mean connect primitive.
@@ -165,7 +165,7 @@ public:
 
      \param maxConnectionDelay Milliseconds wait to get connection
   */
-  void setMaxConnectionDelay(const anna::Millisecond & maxConnectionDelay) throw() { a_maxConnectionDelay = maxConnectionDelay; }
+  void setMaxConnectionDelay(const anna::Millisecond & maxConnectionDelay) { a_maxConnectionDelay = maxConnectionDelay; }
 
   /**
      Gets the milliseconds wait to achieve a client connection to server by mean connect primitive.
@@ -174,14 +174,14 @@ public:
 
      \return Milliseconds wait to get connection
   */
-  const anna::Millisecond & getMaxConnectionDelay() throw() { return a_maxConnectionDelay; }
+  const anna::Millisecond & getMaxConnectionDelay() { return a_maxConnectionDelay; }
 
   /**
    * Binds engine entities.
    *
    * @return Returns true if all client-session were successfully bound
    */
-  bool bind() throw(anna::RuntimeException);
+  bool bind() noexcept(false);
 
   /**
    * Sets CER and DWR diameter messages to be used over created client-sessions.
@@ -190,7 +190,7 @@ public:
    * @param cer Capabilities-Exchange-Request message (encoded) for the client-sessions bind.
    * @param dwr Device-Watchdog-Request message (encoded) for the client-sessions keep-alive.
    */
-  void setClientCERandDWR(const anna::DataBlock & cer, const anna::DataBlock & dwr) throw(anna::RuntimeException);
+  void setClientCERandDWR(const anna::DataBlock & cer, const anna::DataBlock & dwr) noexcept(false);
 
   /**
    * Sets CER and DWR diameter messages to be used over created client-sessions. If empty string is provided for CER and/or DWR, default version will be configured.
@@ -199,7 +199,7 @@ public:
    * @param cer Capabilities-Exchange-Request xml message path file for the client-sessions bind. If empty string is provided (default), a default version for CER will be encoded.
    * @param dwr Device-Watchdog-Request xml message path file for the client-sessions keep-alive. If empty string is provided (default), a default version for DWR will be encoded.
    */
-  void setClientCERandDWR(const std::string & cer = "", const std::string & dwr = "") throw(anna::RuntimeException);
+  void setClientCERandDWR(const std::string & cer = "", const std::string & dwr = "") noexcept(false);
 
   /**
    * Sets the watchdog period (DWR) for client-sessions.
@@ -207,20 +207,20 @@ public:
    *
    * @param wp Watchdog period.
    */
-  void setWatchdogPeriod(const anna::Millisecond & wp) throw(anna::RuntimeException);
+  void setWatchdogPeriod(const anna::Millisecond & wp) noexcept(false);
 
   /**
    * Gets the number of client-sessions per server.
    * \return numberOfClientSessionsPerServer Number of client-sessions per server.
    */
-  int getNumberOfClientSessionsPerServer() const throw() { return a_numberOfClientSessionsPerServer; }
+  int getNumberOfClientSessionsPerServer() const { return a_numberOfClientSessionsPerServer; }
 
   /**
    * Sets the number of client-sessions per server.
    * Its recommended to set this global configuration although it is possible to configure each client-session separately.
    * \param numberOfClientSessionsPerServer Number of client-sessions per server.
    */
-  void setNumberOfClientSessionsPerServer(int numberOfClientSessionsPerServer) throw() { a_numberOfClientSessionsPerServer = numberOfClientSessionsPerServer; }
+  void setNumberOfClientSessionsPerServer(int numberOfClientSessionsPerServer) { a_numberOfClientSessionsPerServer = numberOfClientSessionsPerServer; }
 
 
   /**
@@ -235,13 +235,13 @@ public:
    *
    * \warning If no client-session found, an exception is launched by default.
    */
-  ClientSession* findClientSession(const std::string & addr, int port, int socketId, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException);
+  ClientSession* findClientSession(const std::string & addr, int port, int socketId, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false);
 
 
   /**
    * Same as #findClientSession, but providing client session key (<address>:<port>|<socket id>)
    */
-  ClientSession* findClientSession(const std::string & key, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException);
+  ClientSession* findClientSession(const std::string & key, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false);
 
 
   /**
@@ -255,7 +255,7 @@ public:
    *
    * \warning If no server found, an exception is launched by default.
    */
-  Server* findServer(const std::string & addr, int port, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException);
+  Server* findServer(const std::string & addr, int port, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false);
 
   /**
    * Returns entity instance identified by internal index.
@@ -267,7 +267,7 @@ public:
    *
    * \warning If no entity found, an exception is launched by default.
    */
-  Entity* findEntity(const socket_v & socketList, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException);
+  Entity* findEntity(const socket_v & socketList, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false);
 
   /**
    * Returns entity instance identified by internal index.
@@ -282,7 +282,7 @@ public:
    *
    * \warning If no entity found, an exception is launched by default.
    */
-  Entity* findEntity(const std::string & addr1, int port1, const std::string & addr2, int port2, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException);
+  Entity* findEntity(const std::string & addr1, int port1, const std::string & addr2, int port2, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false);
 
   /**
    * Creates a diameter entity with provided parameters.
@@ -298,7 +298,7 @@ public:
    * indicates that 'ClassCode::Bind' has been correctly performed for any included client-session.
    */
   Entity* createEntity(const socket_v & socketList, const std::string & description = "")
-  throw(anna::RuntimeException);
+  noexcept(false);
 
   /**
    * Creates a standard (dual) diameter entity with provided parameters.
@@ -317,7 +317,7 @@ public:
    * indicates that 'ClassCode::Bind' has been correctly performed for any included client-session.
    */
   Entity* createEntity(const std::string & addr1, int port1, const std::string & addr2, int port2, const std::string & description = "")
-  throw(anna::RuntimeException);
+  noexcept(false);
 
 
   /**
@@ -331,7 +331,7 @@ public:
    *
    * \warning If no local server found, an exception is launched by default.
    */
-  LocalServer* findLocalServer(const std::string & addr, int port, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException);
+  LocalServer* findLocalServer(const std::string & addr, int port, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false);
 
   /**
    * Returns server-session instance identified by INetAddress serialization provided.
@@ -343,7 +343,7 @@ public:
    *
    * \warning If no server-session found, an exception is launched by default.
    */
-  ServerSession* findServerSession(int socketId, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException);
+  ServerSession* findServerSession(int socketId, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false);
 
   /**
    * Creates a diameter local server with provided parameters.
@@ -362,7 +362,7 @@ public:
    * \return The local server created or exception when is already created.
    */
   LocalServer *createLocalServer(const std::string & addr, int port = Session::DefaultPort, int maxConnections = -1, const anna::Millisecond & allowedInactivityTime = ServerSession::DefaultAllowedInactivityTime, int category = 1, const std::string & description = "")
-  throw(anna::RuntimeException);
+  noexcept(false);
 
 
   /**
@@ -371,7 +371,7 @@ public:
 
      @param destroy Free all engine entity resources
   */
-  void close(bool destroy = false) throw(anna::RuntimeException) { closeEntities(destroy); closeLocalServers(destroy); }
+  void close(bool destroy = false) noexcept(false) { closeEntities(destroy); closeLocalServers(destroy); }
 
 
   /**
@@ -380,7 +380,7 @@ public:
      Optionally all entities resources may be freed passing true; in this case, close is immediately performed:
      @param destroy Free all engine entity resources
   */
-  void closeEntities(bool destroy = false) throw(anna::RuntimeException);
+  void closeEntities(bool destroy = false) noexcept(false);
 
 
   /**
@@ -390,7 +390,7 @@ public:
    * \param entity Diameter entity to be closed.
    * \param destroy Deletes entity over the engine and all its resources.
    */
-  void closeEntity(Entity* entity, bool destroy = false) throw(anna::RuntimeException);
+  void closeEntity(Entity* entity, bool destroy = false) noexcept(false);
 
 
   /**
@@ -399,7 +399,7 @@ public:
 
      @param destroy Free all engine local servers resources and server sessions within them.
   */
-  void closeLocalServers(bool destroy = false) throw(anna::RuntimeException);
+  void closeLocalServers(bool destroy = false) noexcept(false);
 
   /**
    * Close local server socket and its children server sessions.
@@ -410,49 +410,49 @@ public:
    * \param localServer Local server to be closed.
    * \param destroy Deletes local server over engine and all its resources (server sessions within it).
    */
-  void closeLocalServer(LocalServer * localServer, bool destroy = false) throw(anna::RuntimeException);
+  void closeLocalServer(LocalServer * localServer, bool destroy = false) noexcept(false);
 
   /**
      Gets the number of requests messages over-the-air for entities.
 
      @return OTA messages.
   */
-  int getOTARequestsForEntities() const throw();
+  int getOTARequestsForEntities() const ;
 
   /**
      Gets the number of requests messages over-the-air for local servers.
 
      @return OTA messages.
   */
-  int getOTARequestsForLocalServers() const throw();
+  int getOTARequestsForLocalServers() const ;
 
   /**
      Gets the number of requests messages over-the-air for entities plus local servers.
 
      @return OTA messages.
   */
-  int getOTARequests() const throw() { return (getOTARequestsForEntities() + getOTARequestsForLocalServers()); }
+  int getOTARequests() const { return (getOTARequestsForEntities() + getOTARequestsForLocalServers()); }
 
   /**
      Returns idle state (no pending answers) for entities.
 
      @return Idle state.
   */
-  bool idleForEntities() const throw() { return (getOTARequestsForEntities() == 0); }
+  bool idleForEntities() const { return (getOTARequestsForEntities() == 0); }
 
   /**
      Returns idle state (no pending answers).
 
      @return Idle state.
   */
-  bool idleForLocalServers() const throw() { return (getOTARequestsForLocalServers() == 0); }
+  bool idleForLocalServers() const { return (getOTARequestsForLocalServers() == 0); }
 
   /**
      Returns idle state (no pending answers for entities or local servers).
 
      @return Idle state.
   */
-  bool idle() const throw() { return (getOTARequests() == 0); }
+  bool idle() const { return (getOTARequests() == 0); }
 
   /**
      Sent a message to all the engine entities.
@@ -463,8 +463,8 @@ public:
      @return Returns true (success) only when broadcast is success over all the engine entities. If any entity fails,
      then false is returned. Broadcast try to send all over the resources in spite of any fail.
   */
-  bool broadcastEntities(const Message*message) throw(anna::RuntimeException);
-  bool broadcastEntities(const Message& message) throw(anna::RuntimeException) { return broadcastEntities(&message); }
+  bool broadcastEntities(const Message*message) noexcept(false);
+  bool broadcastEntities(const Message& message) noexcept(false) { return broadcastEntities(&message); }
 
   /**
      Sent a message through all the engine local servers.
@@ -475,22 +475,22 @@ public:
      @return Returns true (success) only when broadcast is success over all the engine local servers. If any local server fails,
      then false is returned. Broadcast try to send all over the resources in spite of any fail.
   */
-  bool broadcastLocalServers(const Message*message) throw(anna::RuntimeException);
-  bool broadcastLocalServers(const Message& message) throw(anna::RuntimeException) { return broadcastLocalServers(&message); }
+  bool broadcastLocalServers(const Message*message) noexcept(false);
+  bool broadcastLocalServers(const Message& message) noexcept(false) { return broadcastLocalServers(&message); }
 
   /**
   * Class string representation
   *
   * @return String with class content
   */
-  virtual std::string asString(void) const throw();
+  virtual std::string asString(void) const ;
 
   /**
      Class XML representation.
      \param parent XML node over which we will put instance information.
      \return XML documentcon with class content.
   */
-  virtual anna::xml::Node* asXML(anna::xml::Node* parent) const throw();
+  virtual anna::xml::Node* asXML(anna::xml::Node* parent) const ;
 
 
   /**
@@ -498,70 +498,70 @@ public:
      Applications must decide to do any other tasks at this idle/isolated situation.
      Default implementation do nothing.
   */
-  virtual void availabilityLostForLocalServers(Engine *) const throw() {;}
+  virtual void availabilityLostForLocalServers(Engine *) const {;}
 
   /**
      When there is any bound server session over the engine, this virtual method will be invoked.
      Applications must decide to do be ready for incoming traffic.
      Default implementation do nothing.
   */
-  virtual void availabilityRecoveredForLocalServers(Engine *) const throw() {;}
+  virtual void availabilityRecoveredForLocalServers(Engine *) const {;}
 
   /**
      When there is not bound entity over the engine, this virtual method will be invoked.
      Many applications must change communicator status to Unavailable when no engines are available.
      Default implementation do nothing.
   */
-  virtual void availabilityLostForEntities(Engine *) const throw() {;}
+  virtual void availabilityLostForEntities(Engine *) const {;}
 
   /**
      When there is any bound entity over the engine, this virtual method will be invoked.
      Many applications must recover communicator status to Available when any engine are available.
      Default implementation do nothing.
   */
-  virtual void availabilityRecoveredForEntities(Engine *) const throw() {;}
+  virtual void availabilityRecoveredForEntities(Engine *) const {;}
 
   /**
      When there is not bound server-session over the local server, this virtual method will be invoked.
      Default implementation do nothing.
   */
-  virtual void availabilityLost(LocalServer *) const throw() {;}
+  virtual void availabilityLost(LocalServer *) const {;}
 
   /**
      When there is any bound server-session over the local server, this virtual method will be invoked.
      Default implementation do nothing.
   */
-  virtual void availabilityRecovered(LocalServer *) const throw() {;}
+  virtual void availabilityRecovered(LocalServer *) const {;}
 
   /**
      When there is not bound server over the entity, this virtual method will be invoked.
      Default implementation do nothing.
   */
-  virtual void availabilityLost(Entity *) const throw() {;}
+  virtual void availabilityLost(Entity *) const {;}
 
   /**
      When there is any bound server over the entity, this virtual method will be invoked.
      Default implementation do nothing.
   */
-  virtual void availabilityRecovered(Entity *) const throw() {;}
+  virtual void availabilityRecovered(Entity *) const {;}
 
   /**
      When there is not bound client-session over the server, this virtual method will be invoked.
      Default implementation do nothing.
   */
-  virtual void availabilityLost(Server *) const throw() {;}
+  virtual void availabilityLost(Server *) const {;}
 
   /**
      When there is any bound client-session over the server, this virtual method will be invoked.
      Default implementation do nothing.
   */
-  virtual void availabilityRecovered(Server *) const throw() {;}
+  virtual void availabilityRecovered(Server *) const {;}
 
   /**
      When a subyacent client session is going to be bound, this method is invoked before.
      Default implementation do nothing.
   */
-  virtual void bindingClientSession(const ClientSession *) const throw() {;}
+  virtual void bindingClientSession(const ClientSession *) const {;}
 
   /**
    * Class user should implement this method in order to define Disconnect-Peer-Answer for last received DPR.
@@ -573,14 +573,14 @@ public:
    * @param dpa DPA datablock passed as reference
    * @param dpr Corresponding DPR received (sequence values must be taken into account in order to build DPA)
   */
-  virtual void readDPA(anna::DataBlock &dpa, const anna::DataBlock & dpr) throw();
+  virtual void readDPA(anna::DataBlock &dpa, const anna::DataBlock & dpr) ;
 
   /**
    * Sets optional CEA from file, when default is not enough
    *
    * @param &ceaPathfile Path file for the CEA xml message provided
    */
-  void setCEA(const std::string &ceaPathfile) throw() { a_ceaPathfile = ceaPathfile; }
+  void setCEA(const std::string &ceaPathfile) { a_ceaPathfile = ceaPathfile; }
 
   /**
    * Class user should implement this method in order to define Capabilities-Exchange-Answer for received CER over server socket.
@@ -611,7 +611,7 @@ public:
    * @param cea CEA datablock passed as reference. Empty cea implies to discard CER received.
    * @param cer Corresponding CER received (sequence values must be taken into account in order to build CEA)
   */
-  virtual void readCEA(anna::DataBlock &cea, const anna::DataBlock & cer) throw();
+  virtual void readCEA(anna::DataBlock &cea, const anna::DataBlock & cer) ;
 
   /**
    * Class user should implement this method in order to define Device-Watchdog-Answer for received DWR over server socket.
@@ -622,7 +622,7 @@ public:
    * @param dwa DWA datablock passed as reference
    * @param dwr Corresponding DWR received (sequence values must be taken into account in order to build DWA)
   */
-  virtual void readDWA(anna::DataBlock &dwa, const anna::DataBlock & dwr) throw();
+  virtual void readDWA(anna::DataBlock &dwa, const anna::DataBlock & dwr) ;
 
   /**
    * DRA basics: CER information is gathered on every server session managed by the diameter comm engine. You could send the message to a
@@ -635,13 +635,13 @@ public:
    *
    * @return transactional response reference, or NULL if answer is sent
    */
-  const Response* sendRealmHost(const Message* message, const std::string &destinationRealm, const std::string &destinationHost = "") throw(anna::RuntimeException);
+  const Response* sendRealmHost(const Message* message, const std::string &destinationRealm, const std::string &destinationHost = "") noexcept(false);
 
   /**
      Reset engine statistics.
      At the moment, only diameter servers processing time is observed.
   */
-  void resetStatistics() throw();
+  void resetStatistics() ;
 
 
   /**
@@ -650,7 +650,7 @@ public:
    * but it is recommended to start the component and set its state as 'running' from the point of view of the
    * application.
    */
-  void lazyInitialize() throw(RuntimeException);
+  void lazyInitialize() noexcept(false);
 
 
 protected:
@@ -669,16 +669,16 @@ protected:
   Engine(const char *className, const stack::Dictionary *baseProtocolDictionary);
 
   // INTERNAL CREATORS AND CLOSE METHODS
-  Server *createServer(Entity*, const socket_t&) throw(anna::RuntimeException);
-  void closeServer(Server*, bool) throw(anna::RuntimeException);
-  ClientSession *createClientSession(Server*, int) throw(anna::RuntimeException);
-  void closeClientSession(ClientSession*, bool) throw(anna::RuntimeException);
+  Server *createServer(Entity*, const socket_t&) noexcept(false);
+  void closeServer(Server*, bool) noexcept(false);
+  ClientSession *createClientSession(Server*, int) noexcept(false);
+  void closeClientSession(ClientSession*, bool) noexcept(false);
 
   // INTERNAL ALLOCATORS
-  Server* allocateServer() throw();
-  void releaseServer(Server*) throw();
-  ClientSession* allocateClientSession() throw();
-  void releaseClientSession(ClientSession*) throw();
+  Server* allocateServer() ;
+  void releaseServer(Server*) ;
+  ClientSession* allocateClientSession() ;
+  void releaseClientSession(ClientSession*) ;
 
 
   /**
@@ -688,14 +688,14 @@ protected:
 
      \see anna::Recycler
   */
-  virtual Entity* allocateEntity() throw() { return NULL; }
+  virtual Entity* allocateEntity() { return NULL; }
 
 
   /**
      Invoked to free entities.
      \see anna::Recycler
   */
-  virtual void releaseEntity(Entity*) throw() {;}
+  virtual void releaseEntity(Entity*) {;}
 
 
   /**
@@ -705,14 +705,14 @@ protected:
 
      \see anna::Recycler
   */
-  virtual LocalServer* allocateLocalServer() throw() { return NULL; }
+  virtual LocalServer* allocateLocalServer() { return NULL; }
 
 
   /**
      Invoked to free local servers.
      \see anna::Recycler
   */
-  virtual void releaseLocalServer(LocalServer*) throw() {;}
+  virtual void releaseLocalServer(LocalServer*) {;}
 
   //  Gets the base protocol codec engine used internally.
   //  This engine is initializaed on constructor with the base protocol dictionary.
@@ -720,7 +720,7 @@ protected:
   //  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<codec::Engine *>(&a_baseProtocolCodecEngine); }
+  codec::Engine *getBaseProtocolCodecEngine() const { return const_cast<codec::Engine *>(&a_baseProtocolCodecEngine); }
 
 private:
 
@@ -749,24 +749,24 @@ private:
 
   // Availability
   bool a_availableForEntities; // any of the entities must be bound
-  void availabilityLostForEntities() throw();
-  void availabilityRecoveredForEntities() throw();
-  bool refreshAvailabilityForEntities() throw(); // return true if change
+  void availabilityLostForEntities() ;
+  void availabilityRecoveredForEntities() ;
+  bool refreshAvailabilityForEntities() ; // return true if change
 
   bool a_availableForLocalServers; // any of the local servers must be bound
-  void availabilityLostForLocalServers() throw();
-  void availabilityRecoveredForLocalServers() throw();
-  bool refreshAvailabilityForLocalServers() throw(); // return true if change
+  void availabilityLostForLocalServers() ;
+  void availabilityRecoveredForLocalServers() ;
+  bool refreshAvailabilityForLocalServers() ; // return true if change
 
-  void eraseDeprecatedIdleEntities() throw();
+  void eraseDeprecatedIdleEntities() ;
 
   // Component:
-  void do_initialize() throw(anna::RuntimeException);
-  void do_stop() throw();
+  void do_initialize() noexcept(false);
+  void do_stop() ;
 
   // Integrity:
-  void checkEntityCollision(const socket_v &) throw(anna::RuntimeException);
-  void assertBaseProtocolHealth() throw(anna::RuntimeException); // checks the dictionary
+  void checkEntityCollision(const socket_v &) noexcept(false);
+  void assertBaseProtocolHealth() noexcept(false); // checks the dictionary
 
 
   //////////////////////////
@@ -780,45 +780,45 @@ private:
   typedef clientSession_container::const_iterator const_clientSession_iterator;
   clientSession_container a_clientSessions;
   anna::Recycler<ClientSession> a_clientSessionsRecycler;
-  clientSession_iterator clientSession_find(const clientSession_key&) throw();
-  clientSession_iterator clientSession_begin() throw() { return a_clientSessions.begin(); }
-  clientSession_iterator clientSession_end() throw() { return a_clientSessions.end(); }
-  static ClientSession* clientSession(clientSession_iterator ii) throw() { return ii->second; }
-  const_clientSession_iterator clientSession_begin() const throw() { return a_clientSessions.begin(); }
-  const_clientSession_iterator clientSession_end() const throw() { return a_clientSessions.end(); }
-  static const ClientSession* clientSession(const_clientSession_iterator ii) throw() { return ii->second; }
+  clientSession_iterator clientSession_find(const clientSession_key&) ;
+  clientSession_iterator clientSession_begin() { return a_clientSessions.begin(); }
+  clientSession_iterator clientSession_end() { return a_clientSessions.end(); }
+  static ClientSession* clientSession(clientSession_iterator ii) { return ii->second; }
+  const_clientSession_iterator clientSession_begin() const { return a_clientSessions.begin(); }
+  const_clientSession_iterator clientSession_end() const { return a_clientSessions.end(); }
+  static const ClientSession* clientSession(const_clientSession_iterator ii) { return ii->second; }
 
   typedef socket_t server_key;
-  server_key getServerKey(const std::string & addr, int port) const throw();
+  server_key getServerKey(const std::string & addr, int port) const ;
   typedef std::map <server_key, Server*> server_container;
   typedef server_container::value_type server_value_type;
   typedef server_container::iterator server_iterator;
   typedef server_container::const_iterator const_server_iterator;
   server_container a_servers;
   anna::Recycler<Server> a_serversRecycler;
-  server_iterator server_find(const server_key&) throw();
-  server_iterator server_begin() throw() { return a_servers.begin(); }
-  server_iterator server_end() throw() { return a_servers.end(); }
-  static Server* server(server_iterator ii) throw() { return ii->second; }
-  const_server_iterator server_begin() const throw() { return a_servers.begin(); }
-  const_server_iterator server_end() const throw() { return a_servers.end(); }
-  static const Server* server(const_server_iterator ii) throw() { return ii->second; }
+  server_iterator server_find(const server_key&) ;
+  server_iterator server_begin() { return a_servers.begin(); }
+  server_iterator server_end() { return a_servers.end(); }
+  static Server* server(server_iterator ii) { return ii->second; }
+  const_server_iterator server_begin() const { return a_servers.begin(); }
+  const_server_iterator server_end() const { return a_servers.end(); }
+  static const Server* server(const_server_iterator ii) { return ii->second; }
 
   typedef std::string entity_key; // 'ADDR1:PORT1 ADDR2:PORT2 ADDR3:PORT3 ...'
-  entity_key getEntityKey(const socket_v &) const throw();
-  entity_key getEntityKey(const std::string & addr1, int port1, const std::string & addr2, int port2) const throw();
+  entity_key getEntityKey(const socket_v &) const ;
+  entity_key getEntityKey(const std::string & addr1, int port1, const std::string & addr2, int port2) const ;
   typedef std::map <entity_key, Entity*> entity_container;
   typedef entity_container::value_type entity_value_type;
   typedef entity_container::iterator entity_iterator;
   typedef entity_container::const_iterator const_entity_iterator;
   entity_container a_entities;
-  entity_iterator entity_find(const entity_key&) throw();
-  entity_iterator entity_begin() throw() { return a_entities.begin(); }
-  entity_iterator entity_end() throw() { return a_entities.end(); }
-  static Entity* entity(entity_iterator ii) throw() { return ii->second; }
-  const_entity_iterator entity_begin() const throw() { return a_entities.begin(); }
-  const_entity_iterator entity_end() const throw() { return a_entities.end(); }
-  static const Entity* entity(const_entity_iterator ii) throw() { return ii->second; }
+  entity_iterator entity_find(const entity_key&) ;
+  entity_iterator entity_begin() { return a_entities.begin(); }
+  entity_iterator entity_end() { return a_entities.end(); }
+  static Entity* entity(entity_iterator ii) { return ii->second; }
+  const_entity_iterator entity_begin() const { return a_entities.begin(); }
+  const_entity_iterator entity_end() const { return a_entities.end(); }
+  static const Entity* entity(const_entity_iterator ii) { return ii->second; }
 
 
   //////////////////////////
@@ -831,13 +831,13 @@ private:
   typedef localServer_container::iterator localServer_iterator;
   typedef localServer_container::const_iterator const_localServer_iterator;
   localServer_container a_localServers;
-  localServer_iterator localServer_find(const socket_t&) throw();
-  localServer_iterator localServer_begin() throw() { return a_localServers.begin(); }
-  localServer_iterator localServer_end() throw() { return a_localServers.end(); }
-  static LocalServer* localServer(localServer_iterator ii) throw() { return ii->second; }
-  const_localServer_iterator localServer_begin() const throw() { return a_localServers.begin(); }
-  const_localServer_iterator localServer_end() const throw() { return a_localServers.end(); }
-  static const LocalServer* localServer(const_localServer_iterator ii) throw() { return ii->second; }
+  localServer_iterator localServer_find(const socket_t&) ;
+  localServer_iterator localServer_begin() { return a_localServers.begin(); }
+  localServer_iterator localServer_end() { return a_localServers.end(); }
+  static LocalServer* localServer(localServer_iterator ii) { return ii->second; }
+  const_localServer_iterator localServer_begin() const { return a_localServers.begin(); }
+  const_localServer_iterator localServer_end() const { return a_localServers.end(); }
+  static const LocalServer* localServer(const_localServer_iterator ii) { return ii->second; }
 
   // Server sessions are managed within LocalServer (not at engine) due to dynamic creation nature
   // Here we maintain the Destination-Realm / Destination-Host maps for DRA basics:
@@ -851,7 +851,7 @@ private:
   typedef dr_dh_server_sessions_map_t::const_iterator dr_dh_server_sessions_it_t;
   typedef dr_dh_server_sessions_map_t::iterator dr_dh_server_sessions_nc_it_t;
   dr_dh_server_sessions_map_t a_dr_dh_server_sessions;
-  void manageDrDhServerSession(ServerSession *ss, bool register_or_desregister) throw();
+  void manageDrDhServerSession(ServerSession *ss, bool register_or_desregister) ;
 
   friend class Session;
   friend class ClientSession;