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. --- userland/libc/include/sys/socket.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'userland/libc/include/sys') diff --git a/userland/libc/include/sys/socket.h b/userland/libc/include/sys/socket.h index 18402d0..c4f10e2 100644 --- a/userland/libc/include/sys/socket.h +++ b/userland/libc/include/sys/socket.h @@ -5,3 +5,5 @@ size_t recvfrom(int socket, void *buffer, size_t length, int flags, struct sockaddr *address, socklen_t *address_len); +size_t sendto(int socket, const void *message, size_t length, int flags, + const struct sockaddr *dest_addr, socklen_t dest_len); -- cgit v1.2.3