diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-18 06:41:43 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-01-18 06:41:43 +0000 |
commit | 50ce1437255ada7ec8e667020001a1a00cf5744e (patch) | |
tree | 1212fee0ddbe4cc85702978249cbc2d4b063c7e4 /src | |
parent | 87e8737218c732011fc7c6a620c432e29b32f3de (diff) | |
download | luasocket-50ce1437255ada7ec8e667020001a1a00cf5744e.tar.gz luasocket-50ce1437255ada7ec8e667020001a1a00cf5744e.tar.bz2 luasocket-50ce1437255ada7ec8e667020001a1a00cf5744e.zip |
Have to figure out how to test timeout on connect... kind of hard.
Diffstat (limited to 'src')
-rw-r--r-- | src/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -230,7 +230,7 @@ static int meth_bind(lua_State *L) | |||
230 | p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{master}", 1); | 230 | p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{master}", 1); |
231 | const char *address = luaL_checkstring(L, 2); | 231 | const char *address = luaL_checkstring(L, 2); |
232 | unsigned short port = (unsigned short) luaL_checknumber(L, 3); | 232 | unsigned short port = (unsigned short) luaL_checknumber(L, 3); |
233 | int backlog = (int) luaL_optnumber(L, 4, 1); | 233 | int backlog = (int) luaL_optnumber(L, 4, 0); |
234 | const char *err = inet_trybind(&tcp->sock, address, port, backlog); | 234 | const char *err = inet_trybind(&tcp->sock, address, port, backlog); |
235 | if (err) { | 235 | if (err) { |
236 | lua_pushnil(L); | 236 | lua_pushnil(L); |