diff options
author | Emil Renner Berthing <esmil@mailme.dk> | 2012-12-15 16:32:50 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@mailme.dk> | 2012-12-17 10:11:06 +0100 |
commit | 36babe570b4b1718f1ae8e16940a033d896225ef (patch) | |
tree | a96353435191bfe864a978daa5ba665cb2072a7a /test | |
parent | a78969df5a9589ca51c17dfc20b3a2cfb3f50c46 (diff) | |
download | lem-36babe570b4b1718f1ae8e16940a033d896225ef.tar.gz lem-36babe570b4b1718f1ae8e16940a033d896225ef.tar.xz lem-36babe570b4b1718f1ae8e16940a033d896225ef.zip |
io: put connect and listen in tcp table
Diffstat (limited to 'test')
-rwxr-xr-x | test/ctest.lua | 2 | ||||
-rwxr-xr-x | test/httptest.lua | 4 | ||||
-rwxr-xr-x | test/stest.lua | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/ctest.lua b/test/ctest.lua index ceebebe..b7d87f5 100755 --- a/test/ctest.lua +++ b/test/ctest.lua @@ -22,7 +22,7 @@ print('Entered ' .. arg[0]) 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/httptest.lua b/test/httptest.lua index 1e88f28..0dea30c 100755 --- a/test/httptest.lua +++ b/test/httptest.lua @@ -27,8 +27,8 @@ local concat = table.concat local done = false utils.spawn(function() - local conn = assert(io.tcp_connect('www.google.dk', 80)) - --local conn = assert(io.tcp_connect('127.0.0.1', 8080)) + local conn = assert(io.tcp.connect('www.google.dk', 80)) + --local conn = assert(io.tcp.connect('127.0.0.1', 8080)) print('\nConnected.') diff --git a/test/stest.lua b/test/stest.lua index f156ce7..e9499a1 100755 --- a/test/stest.lua +++ b/test/stest.lua @@ -22,7 +22,7 @@ print('Entered ' .. arg[0]) 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() |