lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I have vague recollections of figuring this.

The archives might have it. Try this from 2008
http://lua.2524044.n2.nabble.com/Problem-in-Lua-for-Windows-with-UDP-multicast-receive-td7638365.html

On 30/06/2014 04:01, Milind Gupta wrote:
> Hi,
>         I was trying out a multicast UDP socket but I cannot use
> IP_ADD_MEMBERSHIP the setoption method fails
> (sckt:setoption("ip-add-membership",{multiaddr="239.250.250.0",interface="*"})).
> The source code mentions that they have a problem. It seems that if
> winsock.h is included it works otherwise they are undefined.
>     Is there any other way to do this or would I have to modify the
> LuaSocket code to make it work?
> 
> Thanks,
> Milind
>