Hi, This is more of a "just because" than anything else...
Here is an example on how to run a WSAPI application (Mercury in this case [1]) with Nanoki's HTTP engine [2], using its build-in TCPServer [3] and a WSAPI handler [4]:
local HTTP = require( 'HTTP' ) local TCPServer = require( 'TCPServer' ) local WSAPI = require( 'WSAPI' ) HTTP[ '.*' ] = WSAPI( require( 'greetings' ).run ) TCPServer( '127.0.0.1', 1080 )( HTTP ) While this "work", none of this necessarily make any sense :) [1] http://github.com/nrk/mercury [2] http://dev.alt.textdrive.com/browser/HTTP/HTTP.lua [3] http://dev.alt.textdrive.com/browser/HTTP/TCPServer.lua [4] http://dev.alt.textdrive.com/browser/HTTP/WSAPI.lua _______________________________________________ Kepler-Project mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/
