diff options
Diffstat (limited to 'test/testsrvr.lua')
-rw-r--r-- | test/testsrvr.lua | 12 |
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")) | |||
12 | test_debug_mode() | 12 | test_debug_mode() |
13 | 13 | ||
14 | ----------------------------------------------------------------------------- | 14 | ----------------------------------------------------------------------------- |
15 | -- Get host and port from command line | ||
16 | ----------------------------------------------------------------------------- | ||
17 | HOST = "localhost" | ||
18 | PORT = 2020 | ||
19 | if arg then | ||
20 | HOST = arg[1] or HOST | ||
21 | PORT = arg[2] or PORT | ||
22 | end | ||
23 | |||
24 | ----------------------------------------------------------------------------- | ||
25 | -- Start control connection | 15 | -- Start control connection |
26 | ----------------------------------------------------------------------------- | 16 | ----------------------------------------------------------------------------- |
27 | server, err = bind(HOST, PORT) | 17 | server, err = bind(HOST, PORT) |