diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-18 21:41:44 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-18 21:41:44 +0000 |
| commit | 7ed89c97f760600df238f9853ee453570935870f (patch) | |
| tree | a17573a43815071e35f85557519fefca739ef7ef /src/socket.lua | |
| parent | ac4aac0909da26befaaeb6b415f66cf35b6980e0 (diff) | |
| download | luasocket-7ed89c97f760600df238f9853ee453570935870f.tar.gz luasocket-7ed89c97f760600df238f9853ee453570935870f.tar.bz2 luasocket-7ed89c97f760600df238f9853ee453570935870f.zip | |
2.0 alpha RELEASED!
Diffstat (limited to 'src/socket.lua')
| -rw-r--r-- | src/socket.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socket.lua b/src/socket.lua index 0a681bf..4d64651 100644 --- a/src/socket.lua +++ b/src/socket.lua | |||
| @@ -37,6 +37,8 @@ function socket.bind(host, port, backlog) | |||
| 37 | return sock | 37 | return sock |
| 38 | end | 38 | end |
| 39 | 39 | ||
| 40 | socket.try = socket.newtry() | ||
| 41 | |||
| 40 | function socket.choose(table) | 42 | function socket.choose(table) |
| 41 | return function(name, opt1, opt2) | 43 | return function(name, opt1, opt2) |
| 42 | if type(name) ~= "string" then | 44 | if type(name) ~= "string" then |
