I can't really understand the use described in asio documentation for socket::async_wait
.
It says:
Asynchronously wait for the socket to become ready to read, ready to write, or to have pending error conditions.
What does pending error conditions
apply to? Does the error received within async_send
/async_receive
count?
If it does, will I receive the error twice: as an argument for async_receive
and as an argument for async_wait
? And in which order?
So far I thought that I would receive an error with socket::async_wait
from the server on its shutdown, but I didn't receive anything...