1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +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:
Andreas Kling 2019-05-03 21:51:40 +02:00
parent 6a5d92f0ad
commit abb5c890e0
6 changed files with 34 additions and 2 deletions

View file

@ -38,6 +38,7 @@ private:
virtual KResult protocol_connect(FileDescriptor&, ShouldBlock) override;
virtual int protocol_allocate_source_port() override;
virtual bool protocol_is_disconnected() const override;
virtual KResult protocol_bind() override;
dword m_sequence_number { 0 };
dword m_ack_number { 0 };