MSG_DONTWAIT on recvfrom

T. Horsnell tsh@mrc-lmb.cam.ac.uk
Mon Mar 9 13:01:00 GMT 2009


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/



More information about the Cygwin mailing list