src/net/udpflow.bend checks
raw source on the hub · import 0x4c3545aa4609661612fe35675effd0c0/src/net/udpflow.bend as Udpflow
3 imports
import Base import ../lib/u64.bend as U import ./limits.bend as N
Types
type Age source · line 11 · raw
Data
A flow's number and how long since a datagram went either way (ns).
Age@id:U32 -> @age:0x4c3545aa4609661612fe35675effd0c0/src/lib/u64.U64 -> Age
Definitions
def Udp.count source · line 14 · raw
@+as:List<&2, Age> -> U32
def Udp.age_of source · line 17 · raw
@a:Age -> 0x4c3545aa4609661612fe35675effd0c0/src/lib/u64.U64
def Udp.older source · line 22 · raw
@skip:Bool -> @+a:Age -> @best:Maybe<&2, Age> -> Maybe<&2, Age>
def Udp.oldest source · line 32 · raw
@as:List<&2, Age> -> @+fresh:U32 -> @best:Maybe<&2, Age> -> Maybe<&2, Age>
The oldest flow but fresh (the one just opened).
def Udp.id_of source · line 39 · raw
@m:Maybe<&2, Age> -> Maybe<&2, U32>
def Udp.evict source · line 48 · raw
@+as:List<&2, Age> -> @+fresh:U32 -> @l:0x4c3545aa4609661612fe35675effd0c0/src/net/limits.Limits -> Maybe<&2, U32>
Past the most flows (l's udp_max) after fresh opened: the least recently used other flow closes.
def Udp.idle source · line 54 · raw
@+age:0x4c3545aa4609661612fe35675effd0c0/src/lib/u64.U64 -> @l:0x4c3545aa4609661612fe35675effd0c0/src/net/limits.Limits -> Bool
A flow no datagram crossed for l's udp_idle closes.
def Udp.ages source · line 60 · raw
@ws:List<&2, U32> -> List<&2, Age>
The host's flows (Hvf.udp_ages): [id, age hi, age lo]*.