c++ - Multiple call to async_accept -
It's OK to call it again before the call handler.
Thank you. / P>
From the documentation of async_accept:
Whether asynchronous operation is completed immediately or not The handler will not be implemented from within this function. Handler's invitation will be similar to how to use boost :: asio :: io_service :: post ().
IO_service has a line of callback that will be processed independently What happens in Async_accept, yes, you can call it several times, and every time it's your The call will queue the handler, and io_service will remove them from the queue and execute their handler.
Comments
Post a Comment