diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-01-22 22:38:43 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-01-22 22:38:43 +0000 |
commit | 2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a (patch) | |
tree | 486ca38e0b18e2d99c44d2101a45c41671abb8d4 /src | |
parent | b999686ea893e969e2c02f3c6966b1ddb44f72ce (diff) | |
download | luasocket-2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a.tar.gz luasocket-2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a.tar.bz2 luasocket-2cd2a5d4a4ca9307eacbd73bc6c591d635204a8a.zip |
Stupid bug.
Diffstat (limited to 'src')
-rw-r--r-- | src/tcp.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -91,8 +91,6 @@ int tcp_open(lua_State *L) | |||
91 | aux_add2group(L, "tcp{master}", "tcp{any}"); | 91 | aux_add2group(L, "tcp{master}", "tcp{any}"); |
92 | aux_add2group(L, "tcp{client}", "tcp{any}"); | 92 | aux_add2group(L, "tcp{client}", "tcp{any}"); |
93 | aux_add2group(L, "tcp{server}", "tcp{any}"); | 93 | aux_add2group(L, "tcp{server}", "tcp{any}"); |
94 | aux_add2group(L, "tcp{client}", "tcp{client,server}"); | ||
95 | aux_add2group(L, "tcp{server}", "tcp{client,server}"); | ||
96 | /* define library functions */ | 94 | /* define library functions */ |
97 | luaL_openlib(L, NULL, func, 0); | 95 | luaL_openlib(L, NULL, func, 0); |
98 | return 0; | 96 | return 0; |
@@ -261,7 +259,7 @@ static int meth_listen(lua_State *L) | |||
261 | \*-------------------------------------------------------------------------*/ | 259 | \*-------------------------------------------------------------------------*/ |
262 | static int meth_shutdown(lua_State *L) | 260 | static int meth_shutdown(lua_State *L) |
263 | { | 261 | { |
264 | p_tcp tcp = (p_tcp) aux_checkgroup(L, "tcp{client}", 1); | 262 | p_tcp tcp = (p_tcp) aux_checkclass(L, "tcp{client}", 1); |
265 | const char *how = luaL_optstring(L, 2, "both"); | 263 | const char *how = luaL_optstring(L, 2, "both"); |
266 | switch (how[0]) { | 264 | switch (how[0]) { |
267 | case 'b': | 265 | case 'b': |