delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/17/03:46:55

X-Spam-Check-By: sourceware.org
Date: Thu, 17 Aug 2006 09:46:41 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 1.5.18: Problem using setsockopt() for multicast
Message-ID: <20060817074641.GB20467@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT LNX DOT 4 DOT 21 DOT 0608170139450 DOT 20778-100000 AT aass DOT oru DOT se>
Mime-Version: 1.0
In-Reply-To: <Pine.LNX.4.21.0608170139450.20778-100000@aass.oru.se>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019