aboutsummaryrefslogtreecommitdiff
path: root/std/stdsocket.sloth
diff options
context:
space:
mode:
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;