
8 Jul
2011
8 Jul
'11
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().