netdev
[Top] [All Lists]

asymmetry with MSG_DONTWAIT in sendmsg() and recvmsg()

To: netdev@xxxxxxxxxxx
Subject: asymmetry with MSG_DONTWAIT in sendmsg() and recvmsg()
From: Chris Friesen <cfriesen@xxxxxxxxxxxxxxxxxx>
Date: Wed, 07 Jul 2004 09:42:06 -0400
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
I have a SOCK_STREAM PF_UNIX socket with no special options enabled using 
fcntl().

The default with sendmsg() and recvmsg() is to block.

With sndmsg(), I can use the MSG_DONTWAIT flag to enable non-blocking operation for that one call.

How do I do the equivalent for recvmsg()?

Thanks,

Chris

<Prev in Thread] Current Thread [Next in Thread>