lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #5049] Add primitive MSG_PEEK support


From: Frédéric Bernon
Subject: [lwip-devel] [patch #5049] Add primitive MSG_PEEK support
Date: Sat, 30 Jun 2007 10:46:31 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Follow-up Comment #4, patch #5049 (project lwip):

http://www.opengroup.org/onlinepubs/007908799/xns/recvfrom.html
http://www.opengroup.org/onlinepubs/007908799/xns/recv.html

"MSG_PEEK: Peeks at an incoming message. The data is treated as unread and
the next recvfrom() or similar function will still return this data." ... "If
a message is too long to fit in the supplied buffer, and MSG_PEEK is not set
in the flags argument, the excess bytes are discarded."

ms-help://MS.VSCC.2003/MS.MSDNQTR.2006JAN.1033/winsock/winsock/recv_2.htm

"MSG_PEEK: Peeks at the incoming data. The data is copied into the buffer,
but is not removed from the input queue. The function subsequently returns
the amount of data that can be read in a single call to the recv (or
recvfrom) function, which may not be the same as the total amount of data
queued on the socket. The amount of data that can actually be read in a
single call to the recv (or recvfrom) function is limited to the data size
written in the send or sendto function call."

address@hidden:

"patch...for TCP sockets...limited in that it will not peek across netbuf
boundaries"


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5049>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]