Boost logo

Boost Users :

Subject: Re: [Boost-users] ASIO cancel question
From: Igor R (boost.lists_at_[hidden])
Date: 2009-08-07 09:38:42


> [4) why not check socket state and if it was cancelled then set error
> code to corresponding value?]

>From the point of view of the service, a handler is just a functor
that can be invoked as "f()":
http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/reference/Handler.html

But even if we put aside the design/technical aspects and concentrate
on the semantic ones: why should the error indicate cancellation if we
were too late to cancel the operation and it actually managed to
succeed?


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