diff options
| author | unknown <diego.nehab@gmail.com> | 2013-05-27 20:32:54 +0800 |
|---|---|---|
| committer | unknown <diego.nehab@gmail.com> | 2013-05-27 20:32:54 +0800 |
| commit | 5e0b56b8d30c574c6519495ba3fcdd245d54f5a0 (patch) | |
| tree | edaf8ad1549fb1c0c4dc2de0bbdcf24b9a2e3462 /test/test_bind.lua | |
| parent | 26704061a4e28eff573f02297e6da045d166afa4 (diff) | |
| parent | bd51d8c1a5bb30e6a358dee6e85963f777edfff4 (diff) | |
| download | luasocket-5e0b56b8d30c574c6519495ba3fcdd245d54f5a0.tar.gz luasocket-5e0b56b8d30c574c6519495ba3fcdd245d54f5a0.tar.bz2 luasocket-5e0b56b8d30c574c6519495ba3fcdd245d54f5a0.zip | |
Merge branch 'moteus' of https://github.com/moteus/luasocket into moteus
Diffstat (limited to 'test/test_bind.lua')
| -rw-r--r-- | test/test_bind.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_bind.lua b/test/test_bind.lua new file mode 100644 index 0000000..93c42d7 --- /dev/null +++ b/test/test_bind.lua | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | local socket = require "socket" | ||
| 2 | local u = socket.udp() assert(u:setsockname("*", 5088)) u:close() | ||
| 3 | local u = socket.udp() assert(u:setsockname("*", 0)) u:close() | ||
| 4 | local t = socket.tcp() assert(t:bind("*", 5088)) t:close() | ||
| 5 | local t = socket.tcp() assert(t:bind("*", 0)) t:close() | ||
| 6 | print("done!") \ No newline at end of file | ||
