asio 0.1.5 Main Page | Class Index | Member Index | Tutorial

Source listing for Tutorial Part 1

#include <iostream>
#include "asio.hpp"

int main()
{
  asio::demuxer d;

  asio::timer t(d, asio::timer::from_now, 5);
  t.wait();

  std::cout << "Hello, world!\n";

  return 0;
}
Return to Tutorial Part 1 - Using a timer synchronously