interplane.Get Omega
Read in your language

aien-protocols-mv

Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem

Brought by drakestapleton

branch main Branches Tags History

aien-protocols-mv / specs / osh-platform / vectors / s005_eof_after_drain.vec

18 lines · 402 bytes Raw Blame History
1case eof_after_drain
2kind positive
3exec host-logic
4domain any
5needs streams
6# end of stream only when every writer handle is closed and the bytes are drained (ST4.4)
7create R W A => OK
8dup W W2 A w => OK
9write W "abc" => OK n=3
10close W => OK
11read R 1 => OK n=1 data="a"
12read R 8 => OK n=2 data="bc"
13read R 8 => WOULD_BLOCK
14close W2 => OK
15read R 8 => OK n=0
16read R 8 => OK n=0
17close R => OK
18check empty