webmcp
diff framework/bin/mcp.lua @ 474:d1c16b6611dd
Added documentation for listen{{proto = "main", ...}, ...}
author | jbe |
---|---|
date | Tue Jun 06 11:39:32 2017 +0200 (2017-06-06) |
parents | 981ebb743b36 |
children | d3e77b8edb2a |
line diff
1.1 --- a/framework/bin/mcp.lua Tue Jun 06 11:36:31 2017 +0200 1.2 +++ b/framework/bin/mcp.lua Tue Jun 06 11:39:32 2017 +0200 1.3 @@ -290,14 +290,14 @@ 1.4 --[[-- 1.5 listen{ 1.6 { 1.7 - proto = proto, -- "local", "tcp", or "interval" 1.8 - path = path, -- path to unix domain socket if proto == "local" 1.9 - port = port, -- TCP port number 1.10 - host = host, -- "::" for all IPv6 interfaces, "0.0.0.0" for all IPv4 interfaces 1.11 - name = interval_name, -- optional interval name (may be useful for log output) 1.12 - handler = interval_handler, -- interval handler if proto == "interval" 1.13 - delay = delay, -- delay between invocations of interval handler 1.14 - strict = strict -- set to true to substract runtime of interval handler from delay 1.15 + proto = proto, -- "local", "tcp", "interval", or "main" 1.16 + path = path, -- path to unix domain socket if proto == "local" 1.17 + port = port, -- TCP port number 1.18 + host = host, -- "::" for all IPv6 interfaces, "0.0.0.0" for all IPv4 interfaces 1.19 + name = name, -- optional name for main handlers or interval handlers (may be useful for log output) 1.20 + handler = handler, -- handler if proto == "interval" or proto == "main" 1.21 + delay = delay, -- delay between invocations of interval handler 1.22 + strict = strict -- set to true to substract runtime of interval handler from delay 1.23 }, 1.24 { 1.25 ... -- second listener