segunda-feira, 17 de dezembro de 2007

netConfig for Lua - wireless networking library for Lua code

netConfig for Lua - wireless networking library for Lua code - Image 1


So you're a Lua coder and have got a great idea for a LUA application or game, but it could never come to fruition because of one thing: you need to use the Sony PlayStation Portable's wireless network connection. Well programmer shaolan, the homebrew developer behind LuaSQL, swept that hurdle aside with a networking library for Lua code: netConfig for Lua.

Much like LuaSQL, the netConfig library appends its networking configuration to existing Lua code, so it can optionally be integrated for networking support. It can also be invoked via in-line code so you can use the library's inherent connection abilities to access available WAPs and surf the Web for instance.

The code is available directly from shaolan, but you should save the code in its entirety into a file properly named "netConfig.lua". The developer's preference for invoking the library can be used, which goes:

Dofile ( "netConfig.lua")
netConfig() NetConfig ()


The code shown above will work when netConfig.lua is in the immediate directory the Lua code's workspace is currently located. With that covered, happy coding!




Sem comentários: