diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-03-07 22:38:54 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-03-07 22:38:54 +0000 |
| commit | 22396d34f5443eb7f342b25783cbd771d2493ded (patch) | |
| tree | e8bf81cf0959946b1d412979a6c8f5798584ba87 /test/testsrvr.lua | |
| parent | bbb4b3e2c19376ee124033b68f699d44f48bee52 (diff) | |
| download | luasocket-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.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) |
