summaryrefslogtreecommitdiff
path: root/Kernel/Net/UDPSocket.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-04 16:40:34 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-04 16:40:34 +0200
commit5e938868a226cd9d2c2f2736c678f98618f345f5 (patch)
tree4cae733c660d5bab12b5b6d6018c13a080d60acb /Kernel/Net/UDPSocket.h
parent780d2a08c488e5e8a61f7508f7cc31f35bdf8b26 (diff)
downloadserenity-5e938868a226cd9d2c2f2736c678f98618f345f5.zip
IPv4: Rename source/destination in socket classes to local/peer.
It was way too ambiguous who's the source and who's the destination, and it didn't really follow a logical pattern. "Local port" vs "Peer port" is super obvious, so let's call it that.
Diffstat (limited to 'Kernel/Net/UDPSocket.h')
-rw-r--r--Kernel/Net/UDPSocket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/UDPSocket.h b/Kernel/Net/UDPSocket.h
index 693f6eb349..ea94887754 100644
--- a/Kernel/Net/UDPSocket.h
+++ b/Kernel/Net/UDPSocket.h
@@ -9,17 +9,17 @@ public:
static Retained<UDPSocket> create(int protocol);
virtual ~UDPSocket() override;
- static Lockable<HashMap<word, UDPSocket*>>& sockets_by_port();
static UDPSocketHandle from_port(word);
private:
explicit UDPSocket(int protocol);
virtual const char* class_name() const override { return "UDPSocket"; }
+ static Lockable<HashMap<word, UDPSocket*>>& sockets_by_port();
virtual int protocol_receive(const ByteBuffer&, void* buffer, size_t buffer_size, int flags, sockaddr* addr, socklen_t* addr_length) override;
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 int protocol_allocate_local_port() override;
virtual KResult protocol_bind() override;
};