Remove dynamic exceptions
[anna.git] / source / comm / DatagramSocket.cpp
index a0debf8..342b82a 100644 (file)
@@ -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));