mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
Kernel/Net: Implement TCP_NODELAY
This commit is contained in:
parent
38a368c8f6
commit
61ac554a34
5 changed files with 84 additions and 12 deletions
|
@ -165,6 +165,9 @@ public:
|
|||
|
||||
static NetworkOrdered<u16> compute_tcp_checksum(IPv4Address const& source, IPv4Address const& destination, TCPPacket const&, u16 payload_size);
|
||||
|
||||
virtual ErrorOr<void> setsockopt(int level, int option, Userspace<void const*>, socklen_t) override;
|
||||
virtual ErrorOr<void> getsockopt(OpenFileDescription&, int level, int option, Userspace<void*>, Userspace<socklen_t*>) override;
|
||||
|
||||
protected:
|
||||
void set_direction(Direction direction) { m_direction = direction; }
|
||||
|
||||
|
@ -227,6 +230,8 @@ private:
|
|||
// peer's advertised window size.
|
||||
u32 m_send_window_size { 64 * KiB };
|
||||
|
||||
bool m_no_delay { false };
|
||||
|
||||
IntrusiveListNode<TCPSocket> m_retransmit_list_node;
|
||||
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue