diff options
author | Tobias Frust <tobiasfrust@Tobiass-MacBook-Pro.fritz.box> | 2016-06-29 21:44:58 +0200 |
---|---|---|
committer | Tobias Frust <tobiasfrust@Tobiass-MacBook-Pro.fritz.box> | 2016-06-29 21:44:58 +0200 |
commit | 1dc95b4eed7974549ef43a87e0777aa343b30fd4 (patch) | |
tree | c61eaa825e4b873354318f1fdc776fa53b2d303e /src/UDPServer/UDPServer.cpp | |
parent | 38b0d8ad024d11fa643934b0c56690b0e57c3e35 (diff) | |
download | ods-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.cpp')
-rw-r--r-- | src/UDPServer/UDPServer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/UDPServer/UDPServer.cpp b/src/UDPServer/UDPServer.cpp index cd36647..854835a 100644 --- a/src/UDPServer/UDPServer.cpp +++ b/src/UDPServer/UDPServer.cpp @@ -41,6 +41,16 @@ * \param[in] addr The address we receive on. * \param[in] port The port we receive from. */ + +#include "UDPServer.h" + + #include <string.h> + #include <unistd.h> + + #ifndef SOCK_CLOEXEC + #define SOCK_CLOEXEC 0 + #endif + UDPServer::UDPServer(const std::string& addr, int port) : f_port(port) , f_addr(addr) |