summaryrefslogtreecommitdiff
path: root/Kernel/Net/UDPSocket.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-03 21:51:40 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-03 21:51:40 +0200
commitabb5c890e0960fa00cb566a9905e13cba078972b (patch)
treeffacf8d7b0b475932698abddc0221ae95c846f86 /Kernel/Net/UDPSocket.h
parent6a5d92f0ad9c5e03d8cfe0257497d65fc0e93c17 (diff)
downloadserenity-abb5c890e0960fa00cb566a9905e13cba078972b.zip
IPv4: Implement bind() for TCP and UDP sockets.
We can't accept connections just yet, but this patch makes it possible to bind() to a given source address/port.
Diffstat (limited to 'Kernel/Net/UDPSocket.h')
-rw-r--r--Kernel/Net/UDPSocket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Net/UDPSocket.h b/Kernel/Net/UDPSocket.h
index 41506d1df0..693f6eb349 100644
--- a/Kernel/Net/UDPSocket.h
+++ b/Kernel/Net/UDPSocket.h
@@ -20,6 +20,7 @@ private:
virtual int protocol_send(const void*, int) override;
virtual KResult protocol_connect(FileDescriptor&, ShouldBlock) override { return KSuccess; }
virtual int protocol_allocate_source_port() override;
+ virtual KResult protocol_bind() override;
};
class UDPSocketHandle : public SocketHandle {