1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

IPv4: Factor out UDP parts of IPv4Socket into a UDPSocket class.

This commit is contained in:
Andreas Kling 2019-03-14 12:43:18 +01:00
parent 274b500bac
commit edb986c276
6 changed files with 157 additions and 90 deletions

View file

@ -20,9 +20,6 @@ public:
static Lockable<HashTable<IPv4Socket*>>& all_sockets();
static Lockable<HashMap<word, IPv4Socket*>>& sockets_by_udp_port();
static IPv4SocketHandle from_udp_port(word);
virtual KResult bind(const sockaddr*, socklen_t) override;
virtual KResult connect(const sockaddr*, socklen_t) override;
virtual bool get_address(sockaddr*, socklen_t*) override;