diff options
author | Anton Kling <anton@kling.gg> | 2024-04-28 21:39:53 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-28 21:40:39 +0200 |
commit | 507062d51b3e018fdfac838e7982ffe62ff423c5 (patch) | |
tree | 9ed18a03fd2c35329525872f2aabe2455a7a6236 /kernel/socket.h | |
parent | 7695cb9ca77a32aae75cf0d2bcea9769cd938615 (diff) |
Kernel: Use ringbuffer for handling incoming socket data
Diffstat (limited to 'kernel/socket.h')
-rw-r--r-- | kernel/socket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/socket.h b/kernel/socket.h index 550b62b..ad505b8 100644 --- a/kernel/socket.h +++ b/kernel/socket.h @@ -3,6 +3,7 @@ #include <fs/fifo.h> #include <fs/vfs.h> #include <lib/buffered_write.h> +#include <lib/ringbuffer.h> #include <lib/stack.h> #include <stddef.h> #include <typedefs.h> @@ -40,8 +41,7 @@ struct TcpConnection { u16 outgoing_port; int unhandled_packet; - - FIFO_FILE *data_file; + struct ringbuffer buffer; u32 seq; u32 ack; |