Cygwin 1.5.18: Problem using setsockopt() for multicast
Alessandro Saffiotti
asaffio@aass.oru.se
Thu Aug 17 16:49:00 GMT 2006
On Thu, 17 Aug 2006, Brian Ford wrote:
>
> Oh yeah, you must call the setsockopt below after the bind on windows.
> Search MSDN for why.
Thanks a lot, this actually fixed my problem.
In case it may help someone else: I also need to make the socket
reusable by
setsockopt(tcp_broadcast_receiver, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)
and I have found that this, contrary to the IP_ADD_MEMBERSHIP case,
must be called BEFORE I bind the socket!
Thanks again!
Alessandro
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list