Re: [asio-users] Difference in bind ability and broadcast UDP reception between OS
Brought to you by:
chris_kohlhoff
From: Mark J. <Mar...@ma...> - 2011-11-21 18:36:11
|
Does anyone have any other ideas? Thanks again, Mark -----Original Message----- From: Mark Jones Sent: Wednesday, November 16, 2011 9:48 AM To: asi...@li... 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 <arash@...> 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) Mark Jones wrote: > However, on Linux, I also had to add another socket in that is bound > to an endpoint that is for the broadcast address, > address_v4::broadcast(), in order to receive the packet that is addressed to 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); |