lkml.org 
[lkml]   [1997]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: recvfrom with MSG_PEEK
Date
From
> > 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) ?

With such protocols the assumption that consecutive MSG_PEEK queries
return the same message is invalid, thus this programming technique
useless. But that's a userland issue.

olaf

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.064 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site