mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
Kernel: Add MSG_PEEK support for the IPv4Socket
This commit will add MSG_PEEK support, which allows a package to be seen without taking it from the buffer, so that a subsequent recv() without the MSG_PEEK flag can pick it up.
This commit is contained in:
parent
2d098c88dc
commit
e6401d65bd
Notes:
sideshowbarker
2024-07-18 18:57:14 +09:00
Author: https://github.com/sw1tchbl4d3r
Commit: e6401d65bd
Pull-request: https://github.com/SerenityOS/serenity/pull/6715
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/sin-ack
3 changed files with 22 additions and 5 deletions
|
@ -496,6 +496,7 @@ struct pollfd {
|
|||
|
||||
#define MSG_TRUNC 0x1
|
||||
#define MSG_CTRUNC 0x2
|
||||
#define MSG_PEEK 0x4
|
||||
#define MSG_DONTWAIT 0x40
|
||||
|
||||
#define SOL_SOCKET 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue