From a86664076dea8482310e81fc038435a3f72f56d7 Mon Sep 17 00:00:00 2001 From: Ted Blackman Date: Thu, 10 Feb 2022 11:39:31 -0600 Subject: [PATCH] lull: fine congestion control data structures --- pkg/arvo/sys/lull.hoon | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pkg/arvo/sys/lull.hoon b/pkg/arvo/sys/lull.hoon index febec18e0..3f25c1c13 100644 --- a/pkg/arvo/sys/lull.hoon +++ b/pkg/arvo/sys/lull.hoon @@ -547,6 +547,35 @@ rcv=(map bone message-sink-state) nax=(set [=bone =message-num]) heeds=(set duct) + =scry-state + == + +$ scry-state + $: order=(map path @ud) + seq=@ud + keens=((mop @ud keen-state) lte) + metrics=pump-metrics + == + +$ keen-state + $: wan=(list want) :: request packets + hav=(list have) :: response packets, backward + num-fragments=@ud + num-received=@ud + == + +$ want + $: fra=@ud + =hoot + last-sent=@da + tries=@ud + skips=@ud + == + +$ have + $: fra=@ud + rawr + == + +$ rawr :: response packet ::TODO meow + $: sig=@ + siz=@ud + byts == :: $qos: quality of service; how is our connection to a peer doing? ::