[Top][All Lists]

[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: Gecko/20070515 Firefox/

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


"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."


"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."


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


Reply to this item at:


  Message posté via/par Savannah

reply via email to

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