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:
parent
274b500bac
commit
edb986c276
6 changed files with 157 additions and 90 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue