diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-01-02 22:44:00 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-01-02 22:44:00 +0000 |
commit | 97b26e0b66c840a446a0179200c7df23565330d1 (patch) | |
tree | 272f9ea0451f13b563451fb8df21a03669e90d09 /samples/tinyirc.lua | |
parent | a8254e94f8c14ac15b02be53a1cc69ba80899230 (diff) | |
download | luasocket-97b26e0b66c840a446a0179200c7df23565330d1.tar.gz luasocket-97b26e0b66c840a446a0179200c7df23565330d1.tar.bz2 luasocket-97b26e0b66c840a446a0179200c7df23565330d1.zip |
Almost ready to release beta3
Diffstat (limited to 'samples/tinyirc.lua')
-rw-r--r-- | samples/tinyirc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/tinyirc.lua b/samples/tinyirc.lua index 13f42ec..684e7c0 100644 --- a/samples/tinyirc.lua +++ b/samples/tinyirc.lua | |||
@@ -14,8 +14,8 @@ if arg then | |||
14 | port2 = arg[3] or port2 | 14 | port2 = arg[3] or port2 |
15 | end | 15 | end |
16 | 16 | ||
17 | server1 = socket.try(socket.bind(host, port1)) | 17 | server1 = assert(socket.bind(host, port1)) |
18 | server2 = socket.try(socket.bind(host, port2)) | 18 | server2 = assert(socket.bind(host, port2)) |
19 | server1:settimeout(1) -- make sure we don't block in accept | 19 | server1:settimeout(1) -- make sure we don't block in accept |
20 | server2:settimeout(1) | 20 | server2:settimeout(1) |
21 | 21 | ||