diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-01 05:38:44 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-01 05:38:44 +0000 |
commit | 2562738e2db9d7654c48c10247e683215e09b4a5 (patch) | |
tree | 08dcd456594d76d5853e535a8a3b6ac1fdd27fdb /test/unixtest.lua | |
parent | 197aef23ce36844e86e732f26af1df9fc5f149da (diff) | |
download | luasocket-2562738e2db9d7654c48c10247e683215e09b4a5.tar.gz luasocket-2562738e2db9d7654c48c10247e683215e09b4a5.tar.bz2 luasocket-2562738e2db9d7654c48c10247e683215e09b4a5.zip |
Forgot a few files.
Diffstat (limited to 'test/unixtest.lua')
-rw-r--r-- | test/unixtest.lua | 10 |
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 @@ | |||
1 | socket = require("socket") | ||
2 | f = loadlib("etc-1.0.dylib", "unix_open") | ||
3 | f(socket) | ||
4 | u = socket.unix() | ||
5 | print(u:bind("/tmp/luasocket")) | ||
6 | print(u:listen()) | ||
7 | c = u:accept() | ||
8 | while 1 do | ||
9 | print(assert(c:receive())) | ||
10 | end | ||