mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
IPv4: Add simple pseudorandom ephemeral port allocators for TCP and UDP.
This commit is contained in:
parent
77a782a67e
commit
c24d4b07db
8 changed files with 54 additions and 20 deletions
|
@ -18,7 +18,7 @@ private:
|
|||
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() override;
|
||||
virtual void protocol_allocate_source_port() override;
|
||||
virtual int protocol_allocate_source_port() override;
|
||||
};
|
||||
|
||||
class UDPSocketHandle : public SocketHandle {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue