mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 07:54:58 +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
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