lua-users home
lua-l archive

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

I compiled the Luasocket 3.0-rc1 from github and that works good. It does not have that problem.


On Mon, Jun 30, 2014 at 10:39 AM, Milind Gupta <> wrote:
Thank you for the response. I look at the source of Luasocket on github and that seems to be using the correct include files (winsock2.h and ws2tcpip.h). So I have to try using luasocket after compiling it from source. The source in LuaDist may be the old one so it does not work.


On Mon, Jun 30, 2014 at 9:12 AM, Tim Channon <> wrote:
I have vague recollections of figuring this.

The archives might have it. Try this from 2008

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="",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