Re: recvfrom with MSG_PEEK

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 21 May 1997 09:11:47 +0100 (BST)


> Hence, if you pass in a NULL buffer with MSG_PEEK, it would make sense
> to return the address of the incoming packet, again without removing
> it. So the next time you call recvfrom, you get the same packet.

For the trivial case of UDP. How about protocols that do priority ordered
delivery (which as it happens we dont have) ?

Point taken however, I'll look at tweaking 2.1.3x to do this BSDism

Alan