From dd3906c96555805af2580d593cf9429170b07a02 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Wed, 28 Jun 2023 23:55:00 -0500 Subject: sockets --- std/stdsocket.sloth | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 std/stdsocket.sloth (limited to 'std/stdsocket.sloth') 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; -- cgit v1.2.3