62 for (
size_t i = 0; i < len; i++)
80 std::cout <<
"Failed to initialize UDP ports" << std::endl;
85 char message1[] =
"hello world 1!";
86 udp2.
send_bytes((uint8_t*) message1, std::strlen(message1));
89 std::this_thread::sleep_for(std::chrono::milliseconds(500));
90 std::cout << std::endl << std::flush;
93 char message2[] =
"hello world 2!";
94 udp1.
send_bytes((uint8_t*) message2, std::strlen(message2));
97 std::this_thread::sleep_for(std::chrono::milliseconds(500));
98 std::cout << std::endl << std::flush;