Shows how to use xtd::net::sockets::udp_client class.
#include <xtd/io/stream_reader>
#include <xtd/net/sockets/udp_client>
#include <xtd/net/ip_end_point>
#include <xtd/threading/thread>
#include <xtd/console>
auto main()->int {
auto terminate_app = false;
while (!terminate_app) {
auto buffer =
udp.receive(incoming_end_point);
if (buffer.size() && buffer[0] != 0xFF)
}
}};
auto counter = 0;
while (!terminate_app) {
}
}};
server.start();
client.start();
terminate_app = true;
server.join();
client.join();
}