From 7da19138e37c4e0123860f1fecbceb80c3d2627d Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Tue, 3 Dec 2002 07:20:34 +0000 Subject: Faltam testes de ftp e smtp. O resto passa. --- test/testsrvr.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/testsrvr.lua') diff --git a/test/testsrvr.lua b/test/testsrvr.lua index 227e341..141c058 100644 --- a/test/testsrvr.lua +++ b/test/testsrvr.lua @@ -1,8 +1,8 @@ HOST = HOST or "localhost" PORT = PORT or "8080" -server, error = bind(HOST, PORT) -if not server then print("server: " .. tostring(error)) exit() end +server, error = socket.bind(HOST, PORT) +if not server then print("server: " .. tostring(error)) os.exit() end while 1 do print("server: waiting for client connection..."); control = server:accept() @@ -19,6 +19,6 @@ while 1 do print("server: closing connection...") break end - dostring(command) + (loadstring(command))() end end -- cgit v1.2.3-55-g6feb