diff options
author | Anton Kling <anton@kling.gg> | 2024-04-29 22:00:55 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-29 22:00:55 +0200 |
commit | 231301a6190605bd3ced4d961ee0d5d3fcd49d65 (patch) | |
tree | 8af67c28f9b638393f700fbaf2c9e33fd97a8b46 /kernel/socket.h | |
parent | 7d2ab3a71f4bda9d8ee997764d98b29e13a902c5 (diff) |
Kernel/IRC: Add setsockopt and move IRC client to use new socket interface
Diffstat (limited to 'kernel/socket.h')
-rw-r--r-- | kernel/socket.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/socket.h b/kernel/socket.h index b542c87..3d1025d 100644 --- a/kernel/socket.h +++ b/kernel/socket.h @@ -38,6 +38,8 @@ struct TcpConnection { struct ringbuffer incoming_buffer; struct ringbuffer outgoing_buffer; + int no_delay; + u32 seq; u32 ack; @@ -116,4 +118,6 @@ struct INCOMING_TCP_CONNECTION *get_incoming_tcp_connection(u8 ip[4], int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); 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); #endif |