diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-21 20:16:48 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-21 20:16:48 +0000 |
commit | 42e0e74487ca62b58a8a1fa06580154c632b4942 (patch) | |
tree | ff258bb7dde0c43ac267c384efe63cf6105d3677 /test/testsrvr.lua | |
parent | 195069cf5f929f445b0ce20e531cd482d2559083 (diff) | |
download | luasocket-42e0e74487ca62b58a8a1fa06580154c632b4942.tar.gz luasocket-42e0e74487ca62b58a8a1fa06580154c632b4942.tar.bz2 luasocket-42e0e74487ca62b58a8a1fa06580154c632b4942.zip |
Adjusted wsocket to match usocket. Adjusted windows projects.
Diffstat (limited to '')
-rw-r--r-- | test/testsrvr.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testsrvr.lua b/test/testsrvr.lua index 6010789..99b54e5 100644 --- a/test/testsrvr.lua +++ b/test/testsrvr.lua | |||
@@ -6,7 +6,8 @@ if not server then print("server: " .. tostring(error)) os.exit() end | |||
6 | ack = "\n" | 6 | ack = "\n" |
7 | while 1 do | 7 | while 1 do |
8 | print("server: waiting for client connection..."); | 8 | print("server: waiting for client connection..."); |
9 | control = server:accept() | 9 | control, error = server:accept() |
10 | assert(control, error) | ||
10 | -- control:setoption("nodelay", true) | 11 | -- control:setoption("nodelay", true) |
11 | while 1 do | 12 | while 1 do |
12 | command, error = control:receive() | 13 | command, error = control:receive() |