summary refs log tree commit diff stats
path: root/examples/unix_socket/server.nim
diff options
context:
space:
mode:
authorawr1 <41453959+awr1@users.noreply.github.com>2018-09-04 16:33:52 -0500
committerGitHub <noreply@github.com>2018-09-04 16:33:52 -0500
commiteb668003bf35671d7358e5f54e05820c0f4aef3d (patch)
treee5c5d6315f8ba4a5dd647bf67a4d0afb609916e7 /examples/unix_socket/server.nim
parent89ad1cc9b18db8320e5b170ee45888cf79d52001 (diff)
parent4aba2981dd47672744191bd17b39bb149f494637 (diff)
downloadNim-eb668003bf35671d7358e5f54e05820c0f4aef3d.tar.gz
Merge branch 'devel' into experimentalize-reorder
Diffstat (limited to 'examples/unix_socket/server.nim')
-rw-r--r--examples/unix_socket/server.nim14
1 files changed, 0 insertions, 14 deletions
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()