On 3/22/2010 5:03 AM, Corinna Vinschen wrote:
The last time I had problems with MSG_PEEK was back in 2006. Curious
how seldomly it's used, apparently.
Peeking is evil:
http://tangentsoft.net/wskfaq/newbie.html#peeking
The extra kernel context switch problem isn't Windows-specific, so
peeking should be avoided in all code for that reason alone. The other
problems the FAQ item references may be Windows-specific, but they stem
from perfectly reasonable stack design decisions that could affect any
OS, so there's another reason not to peek regardless of what OS you run
your code on.
--
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