Mail Archives: cygwin/2006/08/17/03:46:55
On Aug 17 01:42, Alessandro Saffiotti wrote:
> Hi there,
>
> I ran into the following problem when using setsockopt to create a
> multicast receiver in my own application. Here is the relevant part
> of the code:
> [...]
> if(setsockopt(tcp_broadcast_receiver, IPPROTO_IP, IP_ADD_MEMBERSHIP,
> (const void *)&imreq, sizeof(struct ip_mreq)) != 0)
> [...]
> I have also read the discussion about the conflicting values for
> constants between winsock1 and winsock2. I have tried to replace
> IP_ADD_MEMBERSHIP by hardcoding either 5 (winsock1) or 12 (winsok2),
> but I get the same behavior.
Please don't do that, use the constants.
> I run Cygwin 1.5.18 on Windows XP pro SP2.
>
> Any hints?
Yes, upgrade to Cygwin 1.5.21 and try again, starting with recompiling
the application. If it still fails, I'll have another look into it.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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/
- Raw text -