I am currently trying to use boost::asio for some simple tcp networking for the first time, and I allready came across something I am not really sure how to deal with. As fa
A drawback is that you'll make a busy loop.
while(true) { myIoService.poll() }
will use 100% cpu. myIoService.run() will use 0% cpu.
myIoService.run()
myIoService.run_one() might do what you want but it will block if there is nothing for it to do.
myIoService.run_one()