
8 Jul
2011
8 Jul
'11
9:19 a.m.
Hi All, I would like you to explain me a detail of io_service. In my case I attach a socket to the io_service but if the socket is still open the io_service.stop() does not work as expected. Is there a way to close the socket just through the related io_service? Regards Gianni

8 Jul
8 Jul
11:41 a.m.
I would like you to explain me a detail of io_service. In my case I attach a socket to the io_service but if the socket is still open the io_service.stop() does not work as expected. Is there a way to close the socket just through the related io_service?
io_service doesn't open or close sockets, its only processes completion handlers. Close sockets using socket::close().
4979
Age (days ago)
4979
Last active (days ago)
1 comments
2 participants
participants (2)
-
Gianni Ambrosio
-
Igor R