X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <49B512BE.3050801@mrc-lmb.cam.ac.uk> Date: Mon, 09 Mar 2009 12:59:42 +0000 From: "T. Horsnell" User-Agent: Thunderbird 2.0.0.18 (X11/20081119) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: MSG_DONTWAIT on recvfrom References: <49B4E952 DOT 3050003 AT mrc-lmb DOT cam DOT ac DOT uk> <20090309103418 DOT GT31459 AT calimero DOT vinschen DOT de> In-Reply-To: <20090309103418.GT31459@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Corinna Vinschen wrote: > 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 > Righto. Thank you very much. Terry -- 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/