summaryrefslogtreecommitdiff
path: root/kernel/queue.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-04-29 15:50:32 +0200
committerAnton Kling <anton@kling.gg>2024-04-29 15:50:32 +0200
commitd60fa1fc01e600c4a163bbe82fab3f1986cb1476 (patch)
tree01358975cf35954f87466b805e603ebe9d5b13e6 /kernel/queue.h
parent528031e0e4c17f12b88f6773d31c7a56bf92b956 (diff)
Kernel/TCP: Increment seq number after sending SYN|ACK
Diffstat (limited to 'kernel/queue.h')
-rw-r--r--kernel/queue.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/kernel/queue.h b/kernel/queue.h
deleted file mode 100644
index 38cd992..0000000
--- a/kernel/queue.h
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef QUEUE_H
-#define QUEUE_H
-#include <lib/list.h>
-#include <sched/scheduler.h>
-#include <stddef.h>
-#include <string.h>
-#include <typedefs.h>
-
-#define EVENT_TYPE_FD 0
-#define EVENT_TYPE_TCP_SOCKET 1
-
-struct event {
- u8 type; // File descriptor | Socket
- u32 internal_id;
-};
-
-struct event_queue {
- struct list events;
- int wait;
- process_t *p;
-};
-
-int queue_create(u32 *id, process_t *p);
-int queue_add(u32 queue_id, struct event *ev, u32 size);
-int queue_wait(u32 queue_id);
-int queue_should_block(struct event_queue *q, int *is_empty);
-#endif