[riot-notifications] [RIOT-OS/RIOT] sys/posix/socket: implement MSG_PEEK for recvfrom (#16850)

chrysn notifications at github.com
Mon Sep 20 11:35:00 CEST 2021


I don't understand how the 16739 comment relates. Right now we have

1. the GNRC packet buffers
2. the per-socket reassembled stream

This commit adds on top of this a

3. the per-socket peeked data that was moved over

Now what comes out of 16739 might smush 1 and 2 into the same thing, but either way, a read that does not advance the read cursor (inside 1 or the combined 1+2 pktbuf chain) would achieve the same without an additional buffer (and, above that, do backpressure better).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16850#issuecomment-922768809
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210920/24e1f720/attachment.htm>


More information about the notifications mailing list