X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcomm%2Fhandler%2FDatagramSocket.cpp;fp=source%2Fcomm%2Fhandler%2FDatagramSocket.cpp;h=abc4d5f251174e98746b20410519de89008f4d5a;hp=884024e931bae6292d617105419008d81671f212;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/comm/handler/DatagramSocket.cpp b/source/comm/handler/DatagramSocket.cpp index 884024e..abc4d5f 100644 --- a/source/comm/handler/DatagramSocket.cpp +++ b/source/comm/handler/DatagramSocket.cpp @@ -25,7 +25,7 @@ using namespace std; using namespace anna; void comm::handler::DatagramSocket::initialize() -throw(RuntimeException) { +noexcept(false) { if(a_datagramSocket == NULL) { string msg(asString()); msg += " | comm::DatagramSocket was not established"; @@ -39,12 +39,12 @@ throw(RuntimeException) { } comm::ClientSocket* comm::handler::DatagramSocket::getClientSocket() -throw() { +{ return a_datagramSocket; } void comm::handler::DatagramSocket::apply() -throw(RuntimeException) { +noexcept(false) { Guard guard(a_datagramSocket, "anna::comm::DatagramSocket from anna::comm::handler::DatagramSocket::apply"); comm::DatagramSocket::Notify::_v notify = a_datagramSocket->receive(); @@ -88,7 +88,7 @@ throw(RuntimeException) { * [Tx] -> Communicator */ void comm::handler::DatagramSocket::finalize() -throw() { +{ if(a_datagramSocket == NULL) return; @@ -97,7 +97,7 @@ throw() { } string comm::handler::DatagramSocket::asString() const -throw() { +{ string result("comm::handler::DatagramSocket { "); result += comm::Handler::asString(); result += " | "; @@ -106,7 +106,7 @@ throw() { } xml::Node* comm::handler::DatagramSocket::asXML(xml::Node* parent) const -throw() { +{ xml::Node* result = parent->createChild("comm.handler.DatagramSocket"); comm::Handler::asAttribute(result);