From 05498860e8f7b1e8bb27880bc7526de026694804 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 26 Mar 2021 21:55:50 +0100 Subject: Renamed libs Cleaner and more flexible. --- libc/inc/socket.h | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 libc/inc/socket.h (limited to 'libc/inc/socket.h') diff --git a/libc/inc/socket.h b/libc/inc/socket.h deleted file mode 100644 index 18bc316..0000000 --- a/libc/inc/socket.h +++ /dev/null @@ -1,38 +0,0 @@ -// MIT License, Copyright (c) 2020 Marvin Borner - -#ifndef SOCKET_H -#define SOCKET_H - -#include -#include - -// TODO: Use actual socket types (stream etc) -enum socket_type { S_TCP, S_UDP }; -enum socket_state { S_CONNECTING, S_CONNECTED, S_OPEN, S_CLOSING, S_CLOSED, S_FAILED }; - -struct tcp_socket { - u32 seq_no; - u32 ack_no; - u32 state; -}; - -struct socket_data { - u8 *data; - u32 length; -}; - -struct socket { - u32 pid; - u32 ip_addr; - u32 dst_port; - u32 src_port; - enum socket_state state; - enum socket_type type; - struct list *packets; - union { - struct tcp_socket tcp; - /* struct udp_socket udp; */ - } prot; -}; - -#endif -- cgit v1.2.3