Boost logo

Boost Users :

Subject: Re: [Boost-users] [Asio] Need help making a custom service
From: svante karlsson (saka_at_[hidden])
Date: 2015-03-10 15:35:43


If you got it working by wrapping the file descriptor - post it and I'll
give it a shot on tidying it up.

2015-03-10 20:05 GMT+01:00 Kyle Edwards <kedwards_at_[hidden]>:

> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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