mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +01:00
Wrong class...
This commit is contained in:
parent
e7b7c36aea
commit
5e75dc0857
1
FIX
1
FIX
@ -9,3 +9,4 @@ check all "require("http")" etc in the manual.
|
|||||||
make sure sock_gethostname.* only return success if the hp is not null!
|
make sure sock_gethostname.* only return success if the hp is not null!
|
||||||
change 'l' prefix in C libraries to 'l-something'...
|
change 'l' prefix in C libraries to 'l-something'...
|
||||||
don't forget the declarations in luasocket.h and mime.h!!!
|
don't forget the declarations in luasocket.h and mime.h!!!
|
||||||
|
setpeername was using udp{unconnected}
|
||||||
|
@ -262,7 +262,7 @@ static int meth_settimeout(lua_State *L) {
|
|||||||
* Turns a master udp object into a client object.
|
* Turns a master udp object into a client object.
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
static int meth_setpeername(lua_State *L) {
|
static int meth_setpeername(lua_State *L) {
|
||||||
p_udp udp = (p_udp) aux_checkclass(L, "udp{unconnected}", 1);
|
p_udp udp = (p_udp) aux_checkgroup(L, "udp{any}", 1);
|
||||||
p_tm tm = &udp->tm;
|
p_tm tm = &udp->tm;
|
||||||
const char *address = luaL_checkstring(L, 2);
|
const char *address = luaL_checkstring(L, 2);
|
||||||
int connecting = strcmp(address, "*");
|
int connecting = strcmp(address, "*");
|
||||||
|
Loading…
Reference in New Issue
Block a user