Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] Connection not ending
From: Igor R (boost.lists_at_[hidden])
Date: 2012-05-10 08:59:38


> I don't really see how this changes things. The handlers which io_service
> has, has shared_ptrs to the connection so to get rid of the connection I
> need to get the io_service to call the handler so that the shared_ptr gets
> destroyed, or am I missing something?

Yes, after you close the socket, all the relevant handlers will be
invoked and disposed.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net