Boost logo

Boost :

Subject: Re: [boost] Udp Socket
From: Marcel Raad (raad_at_[hidden])
Date: 2014-02-03 13:41:25


•°o.O sαмι O.o°• <sami.haq99 <at> gmail.com> writes:
> I am not using any asyn.connect or connect method in my program just
> using "send_to" method
> " socket.send_to(boost::asio::buffer(send_buf), receiver_endpoint);"
> My requirement is to send data to multiple specified addresses and one of
> them might be not available at that time so program should keep sending
> data to other available addresses but it terminates after throwing
> exception "host unreachable".

You might want to use the send_to overload taking a
boost::system::error_code& parameter which doesn't throw. But the
appropriate mailing list would be boost-users, this mailing list is about
developing boost libraries.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk