aboutsummaryrefslogtreecommitdiff
path: root/std/stdsocket.sloth
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-06-29 01:47:35 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2023-06-29 01:47:35 -0500
commitc8a987daefa1475b1902b9823e8d2ef4500943cd (patch)
tree6b4d83afc7daee73d4560e0049fb4f83e8a843a4 /std/stdsocket.sloth
parentdd3906c96555805af2580d593cf9429170b07a02 (diff)
downloadsloth-c8a987daefa1475b1902b9823e8d2ef4500943cd.tar.gz
Sockets update
Diffstat (limited to 'std/stdsocket.sloth')
-rw-r--r--std/stdsocket.sloth6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/stdsocket.sloth b/std/stdsocket.sloth
index 46a5328..68576a0 100644
--- a/std/stdsocket.sloth
+++ b/std/stdsocket.sloth
@@ -1,5 +1,5 @@
-foreign fn serversock() Int;
-foreign fn clientsock() Int;
-foreign fn closesock(soc: Int);
+foreign fn serversock(port: Int, addr: String, backlog: Int) Int;
+foreign fn clientsock(port: Int, addr: String) Int;
+foreign fn closesock(soc: Int, server:Bool);
foreign fn sendsock(msg: String, soc: Int);
foreign fn recvsock(soc: Int) String;