diff options
author | Emil Renner Berthing <esmil@mailme.dk> | 2013-01-05 22:26:36 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@mailme.dk> | 2013-01-06 20:46:37 +0100 |
commit | 72400068a26edb6f2d88f62a70d2023d2a19a03c (patch) | |
tree | 44f6834f1b25095f2a051f2383a31d86cc6c2c6e /test | |
parent | 62c631fd7d5d5c66694af9266688851ac442508a (diff) | |
download | lem-72400068a26edb6f2d88f62a70d2023d2a19a03c.tar.gz lem-72400068a26edb6f2d88f62a70d2023d2a19a03c.tar.xz lem-72400068a26edb6f2d88f62a70d2023d2a19a03c.zip |
io/tcp: add MultiServer wrapper
..to easily liston on both IPv4 and IPv6
Diffstat (limited to 'test')
-rwxr-xr-x | test/ctest.lua | 2 | ||||
-rwxr-xr-x | test/stest.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ctest.lua b/test/ctest.lua index adf117e..c49d677 100755 --- a/test/ctest.lua +++ b/test/ctest.lua @@ -25,7 +25,7 @@ package.cpath = '?.so' local utils = require 'lem.utils' local io = require 'lem.io' -local conn = assert(io.tcp.connect('localhost', arg[1] or 8080)) +local conn = assert(io.tcp.connect('localhost', arg[1] or '8080')) for i = 1, 10 do assert(conn:write('ping\n')) diff --git a/test/stest.lua b/test/stest.lua index 78c3406..82b432a 100755 --- a/test/stest.lua +++ b/test/stest.lua @@ -25,7 +25,7 @@ package.cpath = '?.so' local utils = require 'lem.utils' local io = require 'lem.io' -local server = assert(io.tcp.listen('*', arg[1] or 8080)) +local server = assert(io.tcp.listen('*', arg[1] or '8080')) --timer(10, function() exit(0) end) utils.spawn(function() |