Add socket operations
Some checks failed
Build / build (push) Failing after 6m15s
Test / build (push) Failing after 6m6s

This commit is contained in:
Chuck Smith
2024-03-28 14:11:51 -04:00
parent 67c5b4cd66
commit fd8311b280
11 changed files with 325 additions and 5 deletions

View File

@@ -50,6 +50,11 @@ var Builtins = map[string]*object.Builtin{
"write": {Name: "write", Fn: Write},
"read": {Name: "read", Fn: Read},
"seek": {Name: "seek", Fn: Seek},
"socket": {Name: "socket", Fn: Socket},
"bind": {Name: "bind", Fn: Bind},
"accept": {Name: "accept", Fn: Accept},
"listen": {Name: "listen", Fn: Listen},
"connect": {Name: "connect", Fn: Connect},
}
// BuiltinsIndex ...