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 /kernel/socket.h | |
parent | 33e1b11555d3557a36bd69d63f5bf0c290b5d462 (diff) |
Networking stuff
TCP is now in a somewhat good state
Diffstat (limited to 'kernel/socket.h')
-rw-r--r-- | kernel/socket.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/socket.h b/kernel/socket.h index 0c419fe..454992c 100644 --- a/kernel/socket.h +++ b/kernel/socket.h @@ -15,9 +15,6 @@ typedef int socklen_t; #define AF_INET 1 #define AF_LOCAL AF_UNIX -#define SOCK_DGRAM 0 -#define SOCK_STREAM 1 - #define INADDR_ANY 0 #define MSG_WAITALL 1 @@ -144,4 +141,5 @@ void global_socket_init(void); u16 tcp_get_free_port(void); int setsockopt(int socket, int level, int option_name, const void *option_value, socklen_t option_len); +void tcp_remove_connection(struct TcpConnection *con); #endif |