webmcp
diff framework/bin/mcp.lua @ 485:9b7a391fd461
Updated documentation on passing moonbridge_io.poll to main handlers
author | jbe |
---|---|
date | Sun Jun 11 22:31:17 2017 +0200 (2017-06-11) |
parents | 66086fa01d6e |
children | 7ad7023c91df |
line diff
1.1 --- a/framework/bin/mcp.lua Sun Jun 11 22:29:20 2017 +0200 1.2 +++ b/framework/bin/mcp.lua Sun Jun 11 22:31:17 2017 +0200 1.3 @@ -336,7 +336,7 @@ 1.4 1.5 This function must be called in a configuration file (in the config/ directory) or in pre-fork initializers (in the app/_prefork/ or app/<application name>/_prefork/ directories), unless WebMCP is invoked in interactive mode (in which case any calls of listen{...} are ignored). 1.6 1.7 -This function is a variant of Moonbridge's listen{...} function which has been wrapped for WebMCP. No "prepare", "conenct", or "finish" handler can be set. Instead WebMCP automatically dispatches incoming connections. For interval timers and main routines, a handler may be specified in each listener. If a main handler returns, the WebMCP system will shut down. 1.8 +This function is a variant of Moonbridge's listen{...} function which has been wrapped for WebMCP. No "prepare", "conenct", or "finish" handler can be set. Instead WebMCP automatically dispatches incoming connections. For interval timers and main routines, a handler may be specified in each listener. If a main handler returns, the WebMCP system will shut down. Main handlers get the function moonbridge_io.poll passed as first argument. 1.9 1.10 --]]-- 1.11 -- prepare for interactive or listen mode