Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/net/tests/nosup.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / net / tests / nosup.om` 24 lines ยท 572 bytes Raw Blame History 1 note seed/net/tests/nosup.om -- a program built without TLS (http.om + notls.om) must refuse 2 note every byte on a connection whose transport is not plain TCP (HXPORT 1): the three 3 note transport functions return HENOSUP. Exit 0 = all three refused; 1..3 name the one that did not. 4 fn main to int 5 cs = new ulong 320 0 6 io = new uchar 4096 0 7 d = new uchar 64 0 8 r = hinit cs io 0 0 9 if ne r 0 10 ret 9 11 end 12 put cs HXPORT 1 13 if ne hrecvio cs io 0 16 HENOSUP 14 ret 1 15 end 16 if ne hrecvd cs io d HENOSUP 17 ret 2 18 end 19 if ne hsendio cs io get cs HWB 1 HENOSUP 20 ret 3 21 end 22 put cs HOPEN 0 23 ret 0 24 end