mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
IPv4: Implement bind() for TCP and UDP sockets.
We can't accept connections just yet, but this patch makes it possible to bind() to a given source address/port.
This commit is contained in:
parent
6a5d92f0ad
commit
abb5c890e0
6 changed files with 34 additions and 2 deletions
|
@ -20,6 +20,7 @@ private:
|
|||
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 KResult protocol_bind() override;
|
||||
};
|
||||
|
||||
class UDPSocketHandle : public SocketHandle {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue