diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-04-21 03:15:34 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-04-21 03:15:34 +0000 |
commit | 434e8e014cb21b8d15d512b966ea4f397fd0d369 (patch) | |
tree | f8384d8064364331bf0549b2f518742d8f65ea9d /src | |
parent | 4e3cf63c95fc3c01a1c759e237678e9d3b2b8494 (diff) | |
download | luasocket-434e8e014cb21b8d15d512b966ea4f397fd0d369.tar.gz luasocket-434e8e014cb21b8d15d512b966ea4f397fd0d369.tar.bz2 luasocket-434e8e014cb21b8d15d512b966ea4f397fd0d369.zip |
Better connection handling.
Diffstat (limited to 'src')
-rw-r--r-- | src/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -208,7 +208,7 @@ static int meth_bind(lua_State *L) | |||
208 | \*-------------------------------------------------------------------------*/ | 208 | \*-------------------------------------------------------------------------*/ |
209 | static int meth_connect(lua_State *L) | 209 | static int meth_connect(lua_State *L) |
210 | { | 210 | { |
211 | p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{master}", 1); | 211 | p_tcp tcp = (p_tcp) aux_checkgroup(L, "tcp{any}", 1); |
212 | const char *address = luaL_checkstring(L, 2); | 212 | const char *address = luaL_checkstring(L, 2); |
213 | unsigned short port = (unsigned short) luaL_checknumber(L, 3); | 213 | unsigned short port = (unsigned short) luaL_checknumber(L, 3); |
214 | p_tm tm = tm_markstart(&tcp->tm); | 214 | p_tm tm = tm_markstart(&tcp->tm); |