diff options
author | Anton Kling <anton@kling.gg> | 2024-02-28 21:47:49 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-02-28 21:47:49 +0100 |
commit | e6c8f7298b40757a410d9df6319824c4f0d70351 (patch) | |
tree | b90ee0eba9a45c7551d9f23b6e66620ff0ea5b66 /kernel/network/tcp.h | |
parent | 4536dc81b4be9a62328826455664cd6d696df8fb (diff) |
TCP/UDP: Start rewrite of network sockets
Having sockets be file descriptors seems like a bad idea so I trying to
make UDP and TCP sockets be more independent and not be abstracted away
as much.
Diffstat (limited to 'kernel/network/tcp.h')
-rw-r--r-- | kernel/network/tcp.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/network/tcp.h b/kernel/network/tcp.h index 2a836a4..0f9e818 100644 --- a/kernel/network/tcp.h +++ b/kernel/network/tcp.h @@ -1,4 +1,7 @@ +#include <socket.h> +void tcp_send_syn(struct TcpConnection *con); +void tcp_wait_reply(struct TcpConnection *con); void handle_tcp(u8 src_ip[4], const u8 *payload, u32 payload_length); -void send_tcp_packet(struct INCOMING_TCP_CONNECTION *inc, u8 *payload, +void send_tcp_packet(struct TcpConnection *con, const u8 *payload, u16 payload_length); -void tcp_close_connection(struct INCOMING_TCP_CONNECTION *s); + void tcp_close_connection(struct INCOMING_TCP_CONNECTION * s); |