aboutsummaryrefslogtreecommitdiff
path: root/test/unixudpclnt.lua
diff options
context:
space:
mode:
authorenginix <wnd1024@gmail.com>2016-12-25 23:15:12 +0800
committerenginix <wnd1024@gmail.com>2016-12-25 23:33:10 +0800
commit3a33c37b9ce852d0b3531e82c6ffdb47bb937f0a (patch)
treee481f825991151cd164435faeb4b5e1b779526ae /test/unixudpclnt.lua
parentac3201d62024b397e8d6e3376822176d681811ec (diff)
downloadluasocket-3a33c37b9ce852d0b3531e82c6ffdb47bb937f0a.tar.gz
luasocket-3a33c37b9ce852d0b3531e82c6ffdb47bb937f0a.tar.bz2
luasocket-3a33c37b9ce852d0b3531e82c6ffdb47bb937f0a.zip
rename unix.tcp to unix.stream, unix.udp to unix.dgram
Diffstat (limited to 'test/unixudpclnt.lua')
-rw-r--r--test/unixudpclnt.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/unixudpclnt.lua b/test/unixudpclnt.lua
deleted file mode 100644
index bbbff7f..0000000
--- a/test/unixudpclnt.lua
+++ /dev/null
@@ -1,9 +0,0 @@
1socket = require"socket"
2socket.unix = require"socket.unix"
3c = assert(socket.unix.udp())
4c:bind("/tmp/bar")
5while 1 do
6 local l = io.read("*l")
7 assert(c:sendto(l, "/tmp/foo"))
8 print(assert(c:receivefrom()))
9end