lots o fixes
Some checks failed
Build / build (push) Successful in 9m50s
Publish Image / publish (push) Failing after 49s
Test / build (push) Successful in 10m55s

This commit is contained in:
2024-04-01 18:18:45 -04:00
parent fe33fda0ab
commit 862119e90e
44 changed files with 326 additions and 170 deletions

12
examples/echoserver.m Normal file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env monkey-lang
fd := socket("tcp4")
bind(fd, "0.0.0.0:8000")
listen(fd, 1)
while (true) {
nfd := accept(fd)
msg := read(nfd)
write(nfd, msg)
close(nfd)
}