From 5023464d9575f1d5b69776b5b98696c08ca357ac Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 20 May 2019 03:59:30 +0200 Subject: LocalSocket: Make send() and sendto() work, too. --- Kernel/Net/LocalSocket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel') diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp index fa040741f3..c6cf763b2f 100644 --- a/Kernel/Net/LocalSocket.cpp +++ b/Kernel/Net/LocalSocket.cpp @@ -199,9 +199,9 @@ bool LocalSocket::can_write(FileDescriptor& descriptor) const ASSERT_NOT_REACHED(); } -ssize_t LocalSocket::sendto(FileDescriptor&, const void*, size_t, int, const sockaddr*, socklen_t) +ssize_t LocalSocket::sendto(FileDescriptor& descriptor, const void* data, size_t data_size, int, const sockaddr*, socklen_t) { - ASSERT_NOT_REACHED(); + return write(descriptor, (const byte*)data, data_size); } ssize_t LocalSocket::recvfrom(FileDescriptor& descriptor, void* buffer, size_t buffer_size, int, sockaddr*, socklen_t*) -- cgit v1.2.3