diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-20 03:59:30 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-20 03:59:30 +0200 |
commit | 5023464d9575f1d5b69776b5b98696c08ca357ac (patch) | |
tree | 0434190f342d1add85e037b3e8afa931f2e56b8f /Kernel | |
parent | 668bfaa2afe5f1a673c39286f4fae563d2d5ee17 (diff) | |
download | serenity-5023464d9575f1d5b69776b5b98696c08ca357ac.zip |
LocalSocket: Make send() and sendto() work, too.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Net/LocalSocket.cpp | 4 |
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*) |