Re: behavior of recvmmsg() on blocking sockets

From: drepper
Date: Wed Mar 24 2010 - 14:34:54 EST


On Wed, Mar 24, 2010 at 11:28, Brandon Black <blblack@xxxxxxxxx> wrote:
I still think having a "block until at least one packet arrives" mode
for recvmmsg() makes sense though.

I agree. This is the mode I've seen people asking for. They want the call to return as quickly as possible if there is data and then with as many messages as possible. A MSG_WAITFORONE flag would do the trick nicely.

Attachment: signature.asc
Description: OpenPGP digital signature