X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=utcp_priv.h;h=49ff4bff47bf3f432d3a027f85d8656286a2eb08;hb=d41728102f197003c7db2db6f679e1ca5e26535d;hp=437941f61b126c49560e0b30f54ad651981d0b94;hpb=9fc7e661dbe9f10f39d4d59644cf22be606031fd;p=utcp diff --git a/utcp_priv.h b/utcp_priv.h index 437941f..49ff4bf 100644 --- a/utcp_priv.h +++ b/utcp_priv.h @@ -125,11 +125,11 @@ struct utcp_connection { uint32_t last; uint32_t cwnd; + uint32_t ssthresh; } snd; struct { uint32_t nxt; - uint32_t wnd; uint32_t irs; } rcv; @@ -152,6 +152,7 @@ struct utcp_connection { bool nodelay; bool keepalive; + bool shut_wr; // Congestion avoidance state @@ -168,9 +169,14 @@ struct utcp { utcp_pre_accept_t pre_accept; utcp_send_t send; + // Packet buffer + + void *pkt; + // Global socket options - uint16_t mtu; + uint16_t mtu; // The maximum size of a UTCP packet, including headers. + uint16_t mss; // The maximum size of the payload of a UTCP packet. int timeout; // sec // RTT variables