Example with LuaSocket
Hello,
nice example! If you're interested I completed it to show how to build more complicated apps with C dependencies such as LuaSocket and several Lua files. I did not do the Windows part but it shouldn't be hard (just use wsocket instead of usocket).
Cool example, if you open a pull request, i'll merge it!
I wondered if I should make a PR but I decided against it because it complicates your example quite significantly (it adds two dependencies...) and because I don't have Windows support yet. I think it's a good thing to have the simple version as well.
Ideally I would find a way to make the luasocket part optional, if so we could even make kind of "packages" for popular libraries...