Boost logo

Boost Users :

Subject: Re: [Boost-users] std::future::wait_for() not working in Boost UDP socket async receive operation
From: JC Francois (jc_at_[hidden])
Date: 2016-11-29 16:14:42


On 29/11/2016 11:09, TONGARI J wrote:
> So calling socket.cancel() w/o waiting the cancellation to complete
> should be OK.

Yes indeed, this was the missing element. I added a call to
socket.cancel() in response to the timeout condition and it worked.

Thanks a lot!

/~JC


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