mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
Kernel: Add support for recv() with MSG_DONTWAIT.
Passing this flag to recv() temporarily puts the file descriptor into non-blocking mode. Also implement LocalSocket::recv() as a simple forwarding to read().
This commit is contained in:
parent
0b850cf726
commit
b3a1671f1a
5 changed files with 23 additions and 7 deletions
|
@ -26,6 +26,8 @@ __BEGIN_DECLS
|
|||
#define IPPROTO_TCP 6
|
||||
#define IPPROTO_UDP 17
|
||||
|
||||
#define MSG_DONTWAIT 0x40
|
||||
|
||||
struct sockaddr {
|
||||
uint16_t sa_family;
|
||||
char sa_data[14];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue