aboutsummaryrefslogtreecommitdiff
path: root/test/testsrvr.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2001-03-07 22:38:54 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2001-03-07 22:38:54 +0000
commit22396d34f5443eb7f342b25783cbd771d2493ded (patch)
treee8bf81cf0959946b1d412979a6c8f5798584ba87 /test/testsrvr.lua
parentbbb4b3e2c19376ee124033b68f699d44f48bee52 (diff)
downloadluasocket-22396d34f5443eb7f342b25783cbd771d2493ded.tar.gz
luasocket-22396d34f5443eb7f342b25783cbd771d2493ded.tar.bz2
luasocket-22396d34f5443eb7f342b25783cbd771d2493ded.zip
Updated for release 1.2.1.
Added '*w' pattern test.
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)