aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2005-04-13 22:18:21 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2005-04-13 22:18:21 +0000
commit5e75dc0857625fb9061660e07732e0f833e4a125 (patch)
tree96e7e17a3ae29addb3e6f7664ee4d210de93b786
parente7b7c36aea4ead89f1f9d0774b12d7ef869545aa (diff)
downloadluasocket-5e75dc0857625fb9061660e07732e0f833e4a125.tar.gz
luasocket-5e75dc0857625fb9061660e07732e0f833e4a125.tar.bz2
luasocket-5e75dc0857625fb9061660e07732e0f833e4a125.zip
Wrong class...
-rw-r--r--FIX1
-rw-r--r--src/udp.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/FIX b/FIX
index cd6b27b..ed769d5 100644
--- a/FIX
+++ b/FIX
@@ -9,3 +9,4 @@ check all "require("http")" etc in the manual.
9make sure sock_gethostname.* only return success if the hp is not null! 9make sure sock_gethostname.* only return success if the hp is not null!
10change 'l' prefix in C libraries to 'l-something'... 10change 'l' prefix in C libraries to 'l-something'...
11 don't forget the declarations in luasocket.h and mime.h!!! 11 don't forget the declarations in luasocket.h and mime.h!!!
12setpeername was using udp{unconnected}
diff --git a/src/udp.c b/src/udp.c
index 7a60080..094e137 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -262,7 +262,7 @@ static int meth_settimeout(lua_State *L) {
262* Turns a master udp object into a client object. 262* Turns a master udp object into a client object.
263\*-------------------------------------------------------------------------*/ 263\*-------------------------------------------------------------------------*/
264static int meth_setpeername(lua_State *L) { 264static int meth_setpeername(lua_State *L) {
265 p_udp udp = (p_udp) aux_checkclass(L, "udp{unconnected}", 1); 265 p_udp udp = (p_udp) aux_checkgroup(L, "udp{any}", 1);
266 p_tm tm = &udp->tm; 266 p_tm tm = &udp->tm;
267 const char *address = luaL_checkstring(L, 2); 267 const char *address = luaL_checkstring(L, 2);
268 int connecting = strcmp(address, "*"); 268 int connecting = strcmp(address, "*");