webmcp

changeset 470:ddab87fc05c3

Added documentation for listen{...} regarding interval handlers
author jbe
date Wed May 24 20:45:51 2017 +0200 (2017-05-24)
parents dd6ef55cd59d
children a9fea293b2d6
files framework/bin/mcp.lua
line diff
     1.1 --- a/framework/bin/mcp.lua	Wed May 24 20:44:46 2017 +0200
     1.2 +++ b/framework/bin/mcp.lua	Wed May 24 20:45:51 2017 +0200
     1.3 @@ -290,12 +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 +    proto     = proto,             -- "local", "tcp", or "interval"
    1.14 +    path      = path,              -- path to unix domain socket if proto == "local"
    1.15 +    port      = port,              -- TCP port number
    1.16 +    host      = host,              -- "::" for all IPv6 interfaces, "0.0.0.0" for all IPv4 interfaces
    1.17 +    name      = interval_name,     -- optional interval name (may be useful for log output)
    1.18 +    handler   = interval_handler,  -- interval handler if proto == "interval"
    1.19 +    delay     = delay,             -- delay between invocations of interval handler
    1.20 +    strict    = strict             -- set to true to substract runtime of interval handler from delay
    1.21    },
    1.22    {
    1.23      ...                           -- second listener

Impressum / About Us