lull,ames: reference +mop in $packet-pump-size

This commit is contained in:
~wicrum-wicrun 2023-04-24 18:46:27 +02:00
parent db0afd056e
commit dafa1cc030
2 changed files with 13 additions and 12 deletions

View File

@ -1170,9 +1170,21 @@
:: ::
+$ packet-pump-state +$ packet-pump-state
$: next-wake=(unit @da) $: next-wake=(unit @da)
live=(tree [live-packet-key live-packet-val]) live=((mop live-packet-key live-packet-val) lte-packets)
metrics=pump-metrics metrics=pump-metrics
== ==
:: +lte-packets: yes if a is before b
::
++ lte-packets
|= [a=live-packet-key b=live-packet-key]
^- ?
::
?: (lth message-num.a message-num.b)
%.y
?: (gth message-num.a message-num.b)
%.n
(lte fragment-num.a fragment-num.b)
::
:: $pump-metrics: congestion control state for a |packet-pump :: $pump-metrics: congestion control state for a |packet-pump
:: ::
:: This is an Ames adaptation of TCP's Reno congestion control :: This is an Ames adaptation of TCP's Reno congestion control

View File

@ -133,17 +133,6 @@
[%live %unborn] `"; {(scow %p ship)} has sunk" [%live %unborn] `"; {(scow %p ship)} has sunk"
[%dead %unborn] `"; {(scow %p ship)} has sunk" [%dead %unborn] `"; {(scow %p ship)} has sunk"
== ==
:: +lte-packets: yes if a is before b
::
++ lte-packets
|= [a=live-packet-key b=live-packet-key]
^- ?
::
?: (lth message-num.a message-num.b)
%.y
?: (gth message-num.a message-num.b)
%.n
(lte fragment-num.a fragment-num.b)
:: +split-message: split message into kilobyte-sized fragments :: +split-message: split message into kilobyte-sized fragments
:: ::
:: We don't literally split it here since that would allocate many :: We don't literally split it here since that would allocate many