aboutsummaryrefslogtreecommitdiff
path: root/std/stdsocket.sloth
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-06-28 23:55:00 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2023-06-28 23:55:00 -0500
commitdd3906c96555805af2580d593cf9429170b07a02 (patch)
treea2f3974b325e4b31d3833a828dec7447108c0fb1 /std/stdsocket.sloth
parentc4d6a1229c35cc889a1db53cf1c9d87d2f662238 (diff)
downloadsloth-dd3906c96555805af2580d593cf9429170b07a02.tar.gz
sockets
Diffstat (limited to 'std/stdsocket.sloth')
-rw-r--r--std/stdsocket.sloth5
1 files changed, 5 insertions, 0 deletions
diff --git a/std/stdsocket.sloth b/std/stdsocket.sloth
new file mode 100644
index 0000000..46a5328
--- /dev/null
+++ b/std/stdsocket.sloth
@@ -0,0 +1,5 @@
+foreign fn serversock() Int;
+foreign fn clientsock() Int;
+foreign fn closesock(soc: Int);
+foreign fn sendsock(msg: String, soc: Int);
+foreign fn recvsock(soc: Int) String;