diff options
| author | Anton Kling <anton@kling.gg> | 2024-06-26 18:32:28 +0200 |
|---|---|---|
| committer | Anton Kling <anton@kling.gg> | 2024-06-26 18:36:22 +0200 |
| commit | a9584c6b392c508e71f6452d7be1200a5914419d (patch) | |
| tree | 8f0e856c5d84a47d7bab467766a52b067647e1aa /include | |
| parent | 33e1b11555d3557a36bd69d63f5bf0c290b5d462 (diff) | |
Networking stuff
TCP is now in a somewhat good state
Diffstat (limited to 'include')
| -rw-r--r-- | include/sys/socket.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h index 5af84fc..128abaa 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -7,8 +7,10 @@ #define AF_INET 1 #define AF_LOCAL AF_UNIX -#define SOCK_DGRAM 0 -#define SOCK_STREAM 1 +#define SOCK_DGRAM (1 << 0) +#define SOCK_STREAM (1 << 1) +#define SOCK_NONBLOCK (1 << 2) + #define MSG_WAITALL 1 #define INADDR_ANY 0 |