Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] Callbacks not getting called
From: Igor R (boost.lists_at_[hidden])
Date: 2010-03-11 19:24:21


> Its the aysnc_send/async_read that doesn't ever get a callback.  I tried using
> the reference to HandleAccept in those as well, but like I said above,
> saw the *exact* same results.

If handlers don't get called - it usually means that io_service
stopped. Try wrapping io_service::run() with your own thread function
to see what happens:
void do_run(io_service *io)
{
  io->run();
  std::cout << "io_service::run ended" <<std::eol;
}
//...
thread t(&do_run, &io_service);


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net