delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/17/10:29:27

X-Spam-Check-By: sourceware.org
Date: Thu, 17 Aug 2006 16:29:09 +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: <20060817142909.GI20467@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <00cf01c6c203$da04b5b0$a501a8c0 AT CAM DOT ARTIMI DOT COM> <Pine DOT CYG DOT 4 DOT 58 DOT 0608170853330 DOT 2408 AT PC1163-8460-XP DOT flightsafety DOT com>
Mime-Version: 1.0
In-Reply-To: <Pine.CYG.4.58.0608170853330.2408@PC1163-8460-XP.flightsafety.com>
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 09:06, Brian Ford wrote:
> My point should have been that I use this construct every day in 1.5.18
> and 1.5.21 within our application and it works fine.  I saw very few
> differences.  Here is my snippet in case I missed something else obvious:
> 
> fd = socket(AF_INET, SOCK_DGRAM, 0);
> 
> Oh yeah, you must call the setsockopt below after the bind on windows.
> Search MSDN for why.

Uh, that's the important clue!  I didn't know that and would have been
puzzled by this and found the relevant article in MSDN only after hours
of debugging.  Thanks for the information, it's pretty valuable.


Corinna


P.S.: Do you know the MSDN articel off-hand, maybe?

-- 
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