summary refs log tree commit diff stats
path: root/examples/unix_socket
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-09-03 18:29:00 +0200
committerAraq <rumpf_a@web.de>2018-09-03 18:29:11 +0200
commit320582a55c9ba1f91d70a3f120413e305fda2962 (patch)
tree6114d47a5342adfd4d1f472bb3484a73ad11cf06 /examples/unix_socket
parent1a60ffcf1dc265c6b92dfd757e1bfd5e904c1f3d (diff)
downloadNim-320582a55c9ba1f91d70a3f120413e305fda2962.tar.gz
cleanup Nim's examples/ directory; closes #7725
Diffstat (limited to 'examples/unix_socket')
-rw-r--r--examples/unix_socket/client.nim6
-rw-r--r--examples/unix_socket/server.nim14
2 files changed, 0 insertions, 20 deletions
diff --git a/examples/unix_socket/client.nim b/examples/unix_socket/client.nim
deleted file mode 100644
index f4283d64d..000000000
--- a/examples/unix_socket/client.nim
+++ /dev/null
@@ -1,6 +0,0 @@
-import net
-
-let sock = newSocket(AF_UNIX, SOCK_STREAM, IPPROTO_IP)
-
-sock.connectUnix("sock")
-sock.send("hello\n")
diff --git a/examples/unix_socket/server.nim b/examples/unix_socket/server.nim
deleted file mode 100644
index e798bbb48..000000000
--- a/examples/unix_socket/server.nim
+++ /dev/null
@@ -1,14 +0,0 @@
-import net
-
-let sock = newSocket(AF_UNIX, SOCK_STREAM, IPPROTO_IP)
-sock.bindUnix("sock")
-sock.listen()
-
-while true:
-  var client = new(Socket)
-  sock.accept(client)
-  var output = ""
-  output.setLen 32
-  client.readLine(output)
-  echo "got ", output
-  client.close()