X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcomm%2FDatagramSocket.cpp;fp=source%2Fcomm%2FDatagramSocket.cpp;h=342b82a9eaa81b01cea0c773c0a32a16df7e3edd;hp=a0debf8a57956e0ff69402dcfd181d324a98fc73;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/comm/DatagramSocket.cpp b/source/comm/DatagramSocket.cpp index a0debf8..342b82a 100644 --- a/source/comm/DatagramSocket.cpp +++ b/source/comm/DatagramSocket.cpp @@ -30,7 +30,7 @@ comm::DatagramSocket::DatagramSocket(const comm::DatagramSocket::Mode mode, cons } void comm::DatagramSocket::connect() -throw(RuntimeException) { +noexcept(false) { Guard guard(*this, "comm::DatagramSocket::connect"); anna_socket_assert(isConnected() == true, "Already connected"); @@ -53,7 +53,7 @@ throw(RuntimeException) { } void comm::DatagramSocket::do_write(const DataBlock& message) -throw(RuntimeException) { +noexcept(false) { sockaddr* s(NULL); int len(0); a_remoteAccessPoint.translate(*this, s, len); @@ -76,7 +76,7 @@ throw(RuntimeException) { } int comm::DatagramSocket::do_read(const char* data, const int maxSize) -throw(RuntimeException) { +noexcept(false) { int result; anna_signal_shield(result, recvfrom(Socket::a_fd, (void*) data, maxSize, 0, (sockaddr*) NULL, NULL));