summaryrefslogtreecommitdiffstats
path: root/src/UDPServer/UDPServer.h
diff options
context:
space:
mode:
authorTobias Frust <tobiasfrust@Tobiass-MacBook-Pro.fritz.box>2016-06-29 21:44:58 +0200
committerTobias Frust <tobiasfrust@Tobiass-MacBook-Pro.fritz.box>2016-06-29 21:44:58 +0200
commit1dc95b4eed7974549ef43a87e0777aa343b30fd4 (patch)
treec61eaa825e4b873354318f1fdc776fa53b2d303e /src/UDPServer/UDPServer.h
parent38b0d8ad024d11fa643934b0c56690b0e57c3e35 (diff)
downloadods-1dc95b4eed7974549ef43a87e0777aa343b30fd4.tar.gz
ods-1dc95b4eed7974549ef43a87e0777aa343b30fd4.tar.bz2
ods-1dc95b4eed7974549ef43a87e0777aa343b30fd4.tar.xz
ods-1dc95b4eed7974549ef43a87e0777aa343b30fd4.zip
added client and server executable for testing simple udp packet transfer
Diffstat (limited to 'src/UDPServer/UDPServer.h')
-rw-r--r--src/UDPServer/UDPServer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/UDPServer/UDPServer.h b/src/UDPServer/UDPServer.h
index 7eef796..22f33b3 100644
--- a/src/UDPServer/UDPServer.h
+++ b/src/UDPServer/UDPServer.h
@@ -14,7 +14,13 @@
#include <sys/socket.h>
#include <netdb.h>
#include <stdexcept>
-#include <string>
+#include <cstring>
+
+class udp_client_server_runtime_error : public std::runtime_error
+{
+public:
+ udp_client_server_runtime_error(const char *w) : std::runtime_error(w) {}
+};
class UDPServer
{