X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter.comm%2FServerSession.hpp;h=937cbf935485a320a6c89ed601bcfed331ea013a;hp=5b30204e9afd9528084e270aafaba71ddefe0ebe;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter.comm/ServerSession.hpp b/include/anna/diameter.comm/ServerSession.hpp index 5b30204..937cbf9 100644 --- a/include/anna/diameter.comm/ServerSession.hpp +++ b/include/anna/diameter.comm/ServerSession.hpp @@ -54,7 +54,7 @@ public: ServerSession(); - /* virtual */void initialize() throw(); + /* virtual */void initialize() ; /** * Default max inactivity period for the diameter server-session health. @@ -66,48 +66,48 @@ public: @param allowedInactivityTime Inactivity time allowed */ - void setAllowedInactivityTime(const anna::Millisecond & allowedInactivityTime) throw(); + void setAllowedInactivityTime(const anna::Millisecond & allowedInactivityTime) ; /** Diameter listening address (ip or hostname). \return Diameter listening address. */ - /* virtual */const std::string& getAddress() const throw(); + /* virtual */const std::string& getAddress() const ; /** Diameter listen port. \return Diameter listen port. */ - /* virtual */int getPort() const throw(); + /* virtual */int getPort() const ; /** Server session key. Same as socket id */ - int getKey() const throw() { return getSocketId(); } + int getKey() const { return getSocketId(); } /** Local server parent \return Local server parent */ - LocalServer *getParent() throw() { return a_parent; } + LocalServer *getParent() { return a_parent; } /** Sets the diameter client socket and assign the receiver factory to it \param clientSocket Diameter client socket */ - void setClientSocket(anna::comm::ClientSocket *clientSocket) throw(); + void setClientSocket(anna::comm::ClientSocket *clientSocket) ; /** Diameter client socket \return Diameter client socket */ - anna::comm::ClientSocket *getClientSocket() throw() { return a_clientSocket; } + anna::comm::ClientSocket *getClientSocket() { return a_clientSocket; } // /** // Sets deprecated state to this server session // */ -// void setDeprecated(bool deprecated = true) throw() { a_deprecated = deprecated; } +// void setDeprecated(bool deprecated = true) { a_deprecated = deprecated; } // /** // * Sets CEA and DWA diameter messages to be used over created server-sessions @@ -115,17 +115,17 @@ public: // * @param cea Capabilities-Exchange-Answer message (encoded) for the server-sessions bind. // * @param dwa Device-Watchdog-Answer message (encoded) for the server-sessions keep-alive. // */ -// void setCEAandDWA(const anna::DataBlock & cea, const anna::DataBlock & dwa) throw(anna::RuntimeException); +// void setCEAandDWA(const anna::DataBlock & cea, const anna::DataBlock & dwa) noexcept(false); - /* virtual */const Response* send(const Message* message) throw(anna::RuntimeException); - /* virtual */bool unbind(bool forceDisconnect /* se usa en timer, para el actionTimer del tipo SessionUnbind, etc. */ = false) throw(anna::RuntimeException); // returns true if done at call time (no pendings or ignore pendings, except Disconnecting state by mean DPR/DPA) + /* virtual */const Response* send(const Message* message) noexcept(false); + /* virtual */bool unbind(bool forceDisconnect /* se usa en timer, para el actionTimer del tipo SessionUnbind, etc. */ = false) noexcept(false); // returns true if done at call time (no pendings or ignore pendings, except Disconnecting state by mean DPR/DPA) /** Class string representation \return String with relevant information for this instance. */ - /* virtual */std::string asString() const throw(); + /* virtual */std::string asString() const ; /** @@ -133,7 +133,7 @@ public: \param parent Parent XML node on which hold this instance information. \return XML document with relevant information for this instance. */ - /* virtual */anna::xml::Node* asXML(anna::xml::Node* parent) const throw(); + /* virtual */anna::xml::Node* asXML(anna::xml::Node* parent) const ; protected: @@ -154,12 +154,12 @@ private: // Auxiliary messages: Message a_cer, a_dwr; - /* virtual */void expire(anna::timex::Engine *timeController) throw(anna::RuntimeException); + /* virtual */void expire(anna::timex::Engine *timeController) noexcept(false); // Activity: - /* virtual */void updateIncomingActivityTime() throw(); - /* virtual */void updateOutgoingActivityTime() throw(); - void countSendings(const diameter::CommandId & cid, unsigned int aid, bool ok) throw(); + /* virtual */void updateIncomingActivityTime() ; + /* virtual */void updateOutgoingActivityTime() ; + void countSendings(const diameter::CommandId & cid, unsigned int aid, bool ok) ; // Handlers: /** @@ -167,55 +167,55 @@ private: When notified, ANNA.diameter.comm generates an diameter::comm::ServerSession::eventResponse for every request with pending answers. */ - void eventPeerShutdown() throw(); + void eventPeerShutdown() ; /** Handler about a request retransmission over the session. \param request Message retransmitted */ - void eventRequestRetransmission(Message *request) throw(); + void eventRequestRetransmission(Message *request) ; /** Handler for diameter client responses \param response Answer container object for corresponding diameter request */ - void eventResponse(const Response& response) throw(anna::RuntimeException); + void eventResponse(const Response& response) noexcept(false); /** Handler for diameter client requests \param request Request data block object for corresponding diameter reception */ - void eventRequest(const anna::DataBlock& request) throw(anna::RuntimeException); - //void eventRequest(const Message& request) throw(anna::RuntimeException); + void eventRequest(const anna::DataBlock& request) noexcept(false); + //void eventRequest(const Message& request) noexcept(false); /** Handler for diameter client responses out of context \param response Answer data block object without context match */ - void eventUnknownResponse(const anna::DataBlock& response) throw(anna::RuntimeException); + void eventUnknownResponse(const anna::DataBlock& response) noexcept(false); /** Handler for diameter client Disconnect-Peer-Answer messages \param response Answer data block object without context match */ - void eventDPA(const anna::DataBlock& response) throw(anna::RuntimeException); + void eventDPA(const anna::DataBlock& response) noexcept(false); /** * Handlers for receptions */ - /* virtual */void receive(const anna::comm::Message& message) throw(anna::RuntimeException); - /* virtual */void finalize() throw(); + /* virtual */void receive(const anna::comm::Message& message) noexcept(false); + /* virtual */void finalize() ; - /* virtual */void expireResponse(Response*) throw(); - void sendCEA() throw(anna::RuntimeException); - void sendDWA() throw(anna::RuntimeException); + /* virtual */void expireResponse(Response*) ; + void sendCEA() noexcept(false); + void sendDWA() noexcept(false); friend class anna::diameter::comm::Timer;