# HG changeset patch # User jbe # Date 1497213077 -7200 # Node ID 9b7a391fd46112e5b7baeca145e3ce6fafd64b41 # Parent 66086fa01d6ec1dc2cd47cae70c78b4fd3ce8896 Updated documentation on passing moonbridge_io.poll to main handlers diff -r 66086fa01d6e -r 9b7a391fd461 framework/bin/mcp.lua --- a/framework/bin/mcp.lua Sun Jun 11 22:29:20 2017 +0200 +++ b/framework/bin/mcp.lua Sun Jun 11 22:31:17 2017 +0200 @@ -336,7 +336,7 @@ This function must be called in a configuration file (in the config/ directory) or in pre-fork initializers (in the app/_prefork/ or app//_prefork/ directories), unless WebMCP is invoked in interactive mode (in which case any calls of listen{...} are ignored). -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. +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. --]]-- -- prepare for interactive or listen mode