1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:57:45 +00:00

Kernel: Remove unnecessary SocketHandle<T> class

This was used to return a pre-locked UDPSocket in one place, but there
was really no need for that mechanism in the first place since the
caller ends up locking the socket anyway.
This commit is contained in:
Andreas Kling 2021-12-25 11:23:57 +01:00
parent e923cf6624
commit 9965e59ad8
3 changed files with 4 additions and 45 deletions

View file

@ -17,7 +17,7 @@ public:
static ErrorOr<NonnullRefPtr<UDPSocket>> try_create(int protocol, NonnullOwnPtr<DoubleBuffer> receive_buffer);
virtual ~UDPSocket() override;
static SocketHandle<UDPSocket> from_port(u16);
static RefPtr<UDPSocket> from_port(u16);
static void for_each(Function<void(const UDPSocket&)>);
private: