From d50d18c9da3a125f0196bec89802dec1c5b0b800 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Fri, 27 Oct 2023 22:17:24 +0200 Subject: Kernel/LibC/Networking: Be able to send UDP messages Now it can send UDP messages to a specific IP address and libc has enough to create a basic UDP ECHO server, that is kinda cool. --- scalls/sendto.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scalls/sendto.h (limited to 'scalls/sendto.h') diff --git a/scalls/sendto.h b/scalls/sendto.h new file mode 100644 index 0000000..0f852de --- /dev/null +++ b/scalls/sendto.h @@ -0,0 +1,11 @@ +#include +#include + +struct t_two_args { + uint32_t a; + uint32_t b; +}; +size_t syscall_sendto(int socket, const void *message, size_t length, + int flags, struct t_two_args *extra_args /* + const struct sockaddr *dest_addr, + socklen_t dest_len*/); -- cgit v1.2.3