summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-20 03:59:30 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-20 03:59:30 +0200
commit5023464d9575f1d5b69776b5b98696c08ca357ac (patch)
tree0434190f342d1add85e037b3e8afa931f2e56b8f /Kernel
parent668bfaa2afe5f1a673c39286f4fae563d2d5ee17 (diff)
downloadserenity-5023464d9575f1d5b69776b5b98696c08ca357ac.zip
LocalSocket: Make send() and sendto() work, too.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Net/LocalSocket.cpp4
1 files changed, 2 insertions, 2 deletions
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*)