Boost logo

Boost Users :

Subject: Re: [Boost-users] [Asio] Need help making a custom service
From: Kyle Edwards (kedwards_at_[hidden])
Date: 2015-03-10 15:05:28

On Tue, 2015-03-10 at 14:53 +0100, Bjorn Reese wrote:
> On 03/09/2015 09:34 PM, Kyle Edwards wrote:
> > Notice the use of reactor::read_op. I've done a little more digging
> > through the Boost.Asio code, and it looks like, for this application, I
> > need to use reactor::except_op instead. Is there a simple class/function
> > that does this? Or will I have to implement it myself?
> A possibility could be to wrap the file descriptor in a udp::socket
> (or possibly your own derived from basic_datagram_socket) and use
> async_receive(null_buffers) with the message_out_of_band flag set.
> Never tried it myself though.

Alright, I've written a custom service that just wraps the relevant UDP
classes (service, implementation) and does async_receive() with
message_out_of_band. It's hairy, but it seems to work. Thank you!

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at