interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / net / notls.om

14 lines · 715 bytes Raw Blame History
1note seed/net/notls.om -- the transport hooks of http.om for a program built without TLS.
2note Library unit: no `om2` line, no `fn main`, no globals. Compose it right after http.om:
3note { printf 'om2\n'; cat seed/net/http.om seed/net/notls.om app.om; } | seed/out/omc > app
4note Every hook refuses with HENOSUP, so a connection whose HXPORT is not 0 cannot move bytes;
5note seed/net/https.om is the implementation that plugs om/tls into these three names.
6fn htlsrecv cs edit ulong * io edit uchar * off ulong n ulong to long
7ret HENOSUP
8end
9fn htlsrecvd cs edit ulong * io edit uchar * d edit uchar * to long
10ret HENOSUP
11end
12fn htlssend cs edit ulong * io edit uchar * off ulong n ulong to long
13ret HENOSUP
14end