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;