aboutsummaryrefslogtreecommitdiff
path: root/test/testsrvr.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/testsrvr.lua')
-rw-r--r--test/testsrvr.lua12
1 files changed, 1 insertions, 11 deletions
diff --git a/test/testsrvr.lua b/test/testsrvr.lua
index efa5991..4530014 100644
--- a/test/testsrvr.lua
+++ b/test/testsrvr.lua
@@ -1,6 +1,6 @@
1----------------------------------------------------------------------------- 1-----------------------------------------------------------------------------
2-- LuaSocket automated test module 2-- LuaSocket automated test module
3-- server.lua 3-- testsrvr.lua
4-- This is the server module. It's completely controled by the client module 4-- This is the server module. It's completely controled by the client module
5-- by the use of a control connection. 5-- by the use of a control connection.
6----------------------------------------------------------------------------- 6-----------------------------------------------------------------------------
@@ -12,16 +12,6 @@ assert(dofile("testcmd.lua"))
12test_debug_mode() 12test_debug_mode()
13 13
14----------------------------------------------------------------------------- 14-----------------------------------------------------------------------------
15-- Get host and port from command line
16-----------------------------------------------------------------------------
17HOST = "localhost"
18PORT = 2020
19if arg then
20 HOST = arg[1] or HOST
21 PORT = arg[2] or PORT
22end
23
24-----------------------------------------------------------------------------
25-- Start control connection 15-- Start control connection
26----------------------------------------------------------------------------- 16-----------------------------------------------------------------------------
27server, err = bind(HOST, PORT) 17server, err = bind(HOST, PORT)