summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e69de29..2ff08b2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -0,0 +1,22 @@
+#include "UDPClient/UDPClient.h"
+
+#include <iostream>
+#include <string>
+
+int main (int argc, char *argv[]){
+
+ std::cout << "Sending UDP packages: " << std::endl;
+
+ std::string address = "192.168.178.33";
+ int port = 1234;
+
+ UDPClient client = UDPClient(address, port);
+
+ std::string msg = "test";
+ std::size_t length{msg.size()};
+
+ client.send(msg.c_str(), length);
+
+ return 0;
+
+}