sockets: MSG_WAITALL support

This commit is contained in:
Matheus
2024-08-29 22:48:35 -03:00
parent d3f3ccbb11
commit 066b89c40a
5 changed files with 30 additions and 8 deletions
+1
View File
@@ -89,6 +89,7 @@ typedef struct {
#define SOCK_RAW 3
#define MSG_PEEK 2
#define MSG_WAITALL 0x100
#define MSG_NOSIGNAL 0x4000
#define SO_BROADCAST 6
+1
View File
@@ -30,6 +30,7 @@ typedef struct {
} sockaddr_t;
#define SOCKET_RECV_FLAGS_PEEK 0x8000000000000000l
#define SOCKET_RECV_FLAGS_WAITALL 0x4000000000000000l
#define SOCKET_SEND_FLAGS_NOSIGNAL 0x8000000000000000l
typedef struct socketops_t {
int (*bind)(socket_t *socket, sockaddr_t *addr);