X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=utcp_priv.h;h=49ff4bff47bf3f432d3a027f85d8656286a2eb08;hb=d41728102f197003c7db2db6f679e1ca5e26535d;hp=c23279d82c4c4369a0de076a65c9d86d408e4687;hpb=d6f18182c43287c180e637046c044e8bff5e7064;p=utcp diff --git a/utcp_priv.h b/utcp_priv.h index c23279d..49ff4bf 100644 --- a/utcp_priv.h +++ b/utcp_priv.h @@ -125,6 +125,7 @@ struct utcp_connection { uint32_t last; uint32_t cwnd; + uint32_t ssthresh; } snd; struct { @@ -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