X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 9 Mar 2009 11:34:18 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: MSG_DONTWAIT on recvfrom
Message-ID: <20090309103418.GT31459@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <49B4E952.3050003@mrc-lmb.cam.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <49B4E952.3050003@mrc-lmb.cam.ac.uk>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mar  9 10:02, T. Horsnell wrote:
> I'm trying to use recvfrom in non-blocking mode with the MSG_DONTWAIT flag,
> and I get an undefined name for MSG_DONTWAIT at compile time.
> A trawl through the mail archives gave a reference to this in 2001
> which said:
>
> "Download the source for cygwin1.dll and implement MSG_DONTWAIT"
>
> Is this still the case (I have a recent cygwin with cygwin1.dll 1.5.25)
> or is there a more straightforward fix?

MSG_DONTWAIT isn't supported by Winsock and it's not supported by Cygwin
either.  I put this on my TODO list for a later release but keep in mind
that MSG_DONTWAIT is a non-standard socket extension not backed by
POSIX.  Consider to use O_NONBLOCK with the F_SETFL fcntl command
instead.


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/

