diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-05-25 01:54:13 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-05-25 01:54:13 +0000 |
| commit | 0f6c8d50a99997ac7829864b1c93362b50f1bbf3 (patch) | |
| tree | d0cefe3a05484e65b7b7e79d8cae4a1d2e6d19fb /test/testsrvr.lua | |
| parent | c1ef3e7103cc652d2004ef1ddc9409b946207f33 (diff) | |
| download | luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.tar.gz luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.tar.bz2 luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.zip | |
Porting to LUA 5.0 final
Diffstat (limited to 'test/testsrvr.lua')
| -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 fb77ea5..3c40840 100644 --- a/test/testsrvr.lua +++ b/test/testsrvr.lua | |||
| @@ -13,12 +13,13 @@ while 1 do | |||
| 13 | print("server: closing connection...") | 13 | print("server: closing connection...") |
| 14 | break | 14 | break |
| 15 | end | 15 | end |
| 16 | error = control:send("\n") | 16 | sent, error = control:send("\n") |
| 17 | if error then | 17 | if error then |
| 18 | control:close() | 18 | control:close() |
| 19 | print("server: closing connection...") | 19 | print("server: closing connection...") |
| 20 | break | 20 | break |
| 21 | end | 21 | end |
| 22 | print(command); | ||
| 22 | (loadstring(command))() | 23 | (loadstring(command))() |
| 23 | end | 24 | end |
| 24 | end | 25 | end |
