X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fcomm%2Fserver%2Fmain.cpp;fp=example%2Fcomm%2Fserver%2Fmain.cpp;h=ab29cf5351c39622efd4217157f82c4d7b5a4aa6;hp=d9c5a3b6ee3457490c860697ea587837275cd7bf;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/comm/server/main.cpp b/example/comm/server/main.cpp index d9c5a3b..ab29cf5 100644 --- a/example/comm/server/main.cpp +++ b/example/comm/server/main.cpp @@ -46,7 +46,7 @@ public: private: ThreadData a_contexts; - void eventReceiveMessage (comm::ClientSocket&, const Message&) throw (RuntimeException); + void eventReceiveMessage (comm::ClientSocket&, const Message&) noexcept(false); }; class ArithmeticServer : public comm::Application { @@ -57,9 +57,9 @@ private: MyCommunicator a_communicator; comm::ServerSocket* a_serverSocket; - void initialize () throw (RuntimeException); - void run () throw (RuntimeException); - xml::Node* asXML (xml::Node* app) const throw (); + void initialize () noexcept(false); + void run () noexcept(false); + xml::Node* asXML (xml::Node* app) const ; }; using namespace std; @@ -111,7 +111,7 @@ ArithmeticServer::ArithmeticServer () : // Inicializa el servidor de sockets. //----------------------------------------------------------------------------------------- void ArithmeticServer::initialize () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -127,7 +127,7 @@ void ArithmeticServer::initialize () // Cuando hay un nuevo mensaje invocar�a Communicator::eventReceiveMessage //----------------------------------------------------------------------------------------- void ArithmeticServer::run () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -146,7 +146,7 @@ void ArithmeticServer::run () } xml::Node* ArithmeticServer::asXML (xml::Node* app) const - throw () + { xml::Node* node = app::Application::asXML (app); @@ -164,7 +164,7 @@ xml::Node* ArithmeticServer::asXML (xml::Node* app) const // transport: Instancia del transporto que ha interpretado el mensaje (getMessage). //----------------------------------------------------------------------------------------- void MyCommunicator::eventReceiveMessage (ClientSocket& clientSocket, const Message& message) - throw (RuntimeException) + noexcept(false) { LOGMETHOD (TraceMethod tm ("MyCommunicator", "eventReceiveMessage", ANNA_FILE_LOCATION));