20 std::cout <<
"Nope." << std::endl;
27 st.set_callbacks([&st](){printf(
"Thread init: %p.\n",&st);},
28 [](){printf(
"Thread cleanup.\n");});
30 std::cout <<
"URL: " << st.url() << std::endl;
36 std::atomic<int> received(0);
52 st.add_method(
"example",
"i",
53 [&received](
lo_arg **argv,
int)
54 {std::cout <<
"example (" << (++received) <<
"): "
55 << argv[0]->i << std::endl;});
70 a.send(
"example",
"i", 7890987);
92 while (received < 4 && --tries > 0) {
101 std::cout <<
"Error, waited too long for messages." << std::endl;
109 std::cout <<
"Success!" << std::endl;
Class representing an OSC destination address, proxy for lo_address.
Class representing an OSC bundle, proxy for lo_bundle.
Class representing an OSC message, proxy for lo_message.
Class representing a server thread, proxy for lo_server_thread.
Union used to read values from incoming messages.