How could I embedded socket in Lua internally, just like oslib, debuglib?
I want to implement the function like embedding the socket function in my Lua build. So I don't need to copy socket.core.dll any more (just for fun). I search the maillist, and see some guys discuss the topic, http://lua-users.org/lists/lua-l/2005-10/msg00269.html But I have question for the details steps, who could give me a detailed steps for changing the lua and luasocket code to make them work together (not with dll method). I tried these steps in windows xp with VC2008: 1) copy luasocket code to Lua project. 2) add some code static const luaL_Reg lualibs[] = { {"", luaopen_base}, {LUA