This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin 1.5.18: Problem using setsockopt() for multicast


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]