projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dynamic exceptions
[anna.git]
/
source
/
comm
/
DatagramSocket.cpp
diff --git
a/source/comm/DatagramSocket.cpp
b/source/comm/DatagramSocket.cpp
index
a0debf8
..
342b82a
100644
(file)
--- 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()
}
void comm::DatagramSocket::connect()
-
throw(RuntimeException
) {
+
noexcept(false
) {
Guard guard(*this, "comm::DatagramSocket::connect");
anna_socket_assert(isConnected() == true, "Already connected");
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)
}
void comm::DatagramSocket::do_write(const DataBlock& message)
-
throw(RuntimeException
) {
+
noexcept(false
) {
sockaddr* s(NULL);
int len(0);
a_remoteAccessPoint.translate(*this, s, len);
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)
}
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));
int result;
anna_signal_shield(result, recvfrom(Socket::a_fd, (void*) data, maxSize, 0, (sockaddr*) NULL, NULL));