tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Why do sendmmsg and recvmmsg take unsigned int flags?
> One could argue that the mm functions shouldn't have a flags arg in
> their func protoptyes at all, as they are dealing with a sequence of
> messages, each of which has a flags field in its msghdr, which really
> should be all that is needed.
msg_flags is not the same flag bits as the flags arg to send{,m}msg.
Conceptually, the former applies to the message; the latter to the
operation, though there is a certain amount of confusion (eg, MSG_EOR).
Consider MSG_CTRUNC (flag on message) and MSG_NOSIGNAL (flag on
operation) if you want a clear example of the distinction.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index