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

Hendrik van Essen notifications at github.com
Tue Sep 14 14:32:04 CEST 2021


### Contribution description

These changes make it possible to peek bytes from the socket instead of reading them only once. When in peek mode all read bytes are stored in a ringbuffer for later use.

### Testing procedure

You can test this PR e.g. in conjunction with everything else in #15969.

### Issues/PRs references

This PR is split out from the chunky #15969.
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16850

-- Commit Summary --

  * sys/posix: add flag definitions
  * sys/posix/socket: implement MSG_PEEK for recvfrom

-- File Changes --

    M sys/posix/include/sys/socket.h (20)
    M sys/posix/sockets/posix_sockets.c (105)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16850.patch
https://github.com/RIOT-OS/RIOT/pull/16850.diff

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210914/68b87fdd/attachment.htm>


More information about the notifications mailing list