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