
4 Oct
2008
4 Oct
'08
6:47 p.m.
I would like to know if there is a way to recursively call handle_accept () within handle_accept() and break on condition when the socket is closed. (Please see my comment in the code ).
I don't see any recurtion in your code, you just perform a new async_accept after the previous one ends - this is legitimate and shouldn't cause any problem.