delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/01/14:58:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 1 Aug 2012 20:57:42 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Using recvmsg() with non-unicast datagram (UDP) socket: inconsistent results
Message-ID: <20120801185742.GA9605@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <A9D8BF3D8A74DF4A925FB541C0F39D2A16C25F128A AT NIHMLBX15 DOT nih DOT gov> <20120801090500 DOT GC18636 AT calimero DOT vinschen DOT de> <A9D8BF3D8A74DF4A925FB541C0F39D2A16C25F155C AT NIHMLBX15 DOT nih DOT gov>
MIME-Version: 1.0
In-Reply-To: <A9D8BF3D8A74DF4A925FB541C0F39D2A16C25F155C@NIHMLBX15.nih.gov>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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  1 14:35, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> > I applied a patch which should fix this problem.  It always uses
> > WSARecvMsg now, if called from recvmsg, still provided it is possible,
> > of course (No SOCK_STREAM, no AF_LOCAL).
> > 
> > I'm just generating a new developer snapshot.  Please give the today's
> > snapshot from http://cygwin.com/snapshots/ a try.  Should be up in
> > about
> > half an hour.
> 
> The patched DLL now returns consistent msg_flags regardless of whether
> or not the control message has been requested.  Thanks!
> 
> Could I ask for another favor that since the native WSA msg_flags get
> propagated to the CYGWIN environment, the definitions for the additional
> flag bits, MSG_MCAST and MSG_BCAST (as defined by WSA) to be added to
> <cygwin/socket.h> please?

Done.  These are Windows-specific values not docuemnted by POSIX.
But Linux defines its own return values as well, so, never mind.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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