From c8a987daefa1475b1902b9823e8d2ef4500943cd Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Thu, 29 Jun 2023 01:47:35 -0500 Subject: Sockets update --- std/stdsocket.sloth | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/stdsocket.sloth') 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; -- cgit v1.2.3