
12 Mar
2010
12 Mar
'10
12:24 a.m.
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);