summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
blob: 2ff08b285fea2e3132f0eb3710e331b0045e6d0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;

}