aboutsummaryrefslogtreecommitdiff
path: root/test/unixtest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/unixtest.lua')
-rw-r--r--test/unixtest.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unixtest.lua b/test/unixtest.lua
new file mode 100644
index 0000000..e70b356
--- /dev/null
+++ b/test/unixtest.lua
@@ -0,0 +1,10 @@
1socket = require("socket")
2f = loadlib("etc-1.0.dylib", "unix_open")
3f(socket)
4u = socket.unix()
5print(u:bind("/tmp/luasocket"))
6print(u:listen())
7c = u:accept()
8while 1 do
9 print(assert(c:receive()))
10end