On Nov 28 08:31, patrick ficheux wrote: > Hi, > > I want to use recv() with MSG_WAITALL flag. But this constant isn't defined > in cygwin. > I find a old message about this issue here => > http://www.cygwin.com/ml/cygwin/2000-06/msg01229.html > > Why MSG_WAITALL is not present in cygwin ? > It's a posix compliance problem ?
No, it's a Winsock compliance problem. Actually the MSG_WAITALL flag showed up for the first time in Windows 2003 Server. So, if you rely on this flag, your application might break when running on any earlier Windows version up to and including Windows XP. There are also no considerations in Cygwin's recv implementation to emulate the MSG_WAITALL behaviour. I put that on my TODO list for a later Cygwin version, though. For now you're better off with a recv loop in your application which ensures that the right number of bytes are read. 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/