summaryrefslogtreecommitdiffstats
path: root/src/UDPServer/UDPServer.h
diff options
context:
space:
mode:
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
{