recv with MSG_NONBLOCK and MSG_WAITALL

Posted by osgx on Stack Overflow See other posts from Stack Overflow or by osgx
Published on 2010-05-31T12:13:57Z Indexed on 2010/05/31 13:03 UTC
Read the original article Hit count: 586

Hello

I want to use recv syscall with nonblocking flags MSG_NONBLOCK. But with this flag syscall can return before full request is satisfied. So,

  • can I add MSG_WAITALL flag? Will it be nonblocking?
  • or how should I rewrite blocking recv into the loop with nonblocking recv

© Stack Overflow or respective owner

Related posts about linux

Related posts about sockets