Discussion:
[asio-users] Difference in bind ability and broadcast UDP reception between OS
Mark Jones
2011-11-21 18:36:04 UTC
Permalink
Does anyone have any other ideas?

Thanks again,
Mark


-----Original Message-----
From: Mark Jones
Sent: Wednesday, November 16, 2011 9:48 AM
To: asio-***@lists.sourceforge.net
Subject: Re: Difference in bind ability and broadcast UDP reception between OS

Hi Arash,

I have that set on the sockets, but that is only for outgoing packets as far as I can tell from the documentation of the socket option and so I don't think that is applicable in this case.

Mark


From: Arash Partow <***@...>
Subject: Re: Difference in bind ability and broadcast UDP reception between OS
Newsgroups: gmane.comp.lib.boost.asio.user
Date: 2011-11-15 20:12:38 GMT (18 hours and 33 minutes ago)
However, on Linux, I also had to add another socket in that is bound
to an endpoint that is for the broadcast address,
This might be a red herring, but are you setting the socket options correctly?

boost::asio::socket_base::broadcast option(true); mainSocket.set_option(option); broadcastReceiveSocket.set_option(option);
Loading...