cookbooks:devel:pseudovariables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
cookbooks:devel:pseudovariables [2022/03/31 06:33] – [Presence Module] miconda | cookbooks:devel:pseudovariables [2022/04/07 08:14] – [Evrexec Module] miconda | ||
---|---|---|---|
Line 2659: | Line 2659: | ||
* text - text of the code for the JSONRPC response | * text - text of the code for the JSONRPC response | ||
* body - the body of the JSONRPC response | * body - the body of the JSONRPC response | ||
+ | |||
+ | ===== $lsock(expr) ===== | ||
+ | |||
+ | Get attributes for listen sockets. | ||
+ | |||
+ | The **expr** is an expression specifying what to match and return, the format is: | ||
+ | |||
+ | < | ||
+ | matchid/ | ||
+ | </ | ||
+ | |||
+ | The **expr** can contain variables that are evaluated before parsing the expression. | ||
+ | |||
+ | The **matchid** can be: | ||
+ | |||
+ | * n - match on name | ||
+ | * l - match on listen address | ||
+ | |||
+ | The **value** specifies what to match with. | ||
+ | |||
+ | The **field** can be (only first character matches): | ||
+ | |||
+ | * name - return name | ||
+ | * listen - return the listen address | ||
+ | * advertise - return the advertise address | ||
+ | * index - return the index in the list of all sockets | ||
+ | |||
+ | Example: | ||
+ | |||
+ | < | ||
+ | listen=udp: | ||
+ | ... | ||
+ | xinfo(" | ||
+ | xinfo(" | ||
+ | $var(s0) = " | ||
+ | xinfo(" | ||
+ | </ | ||
===== Evrexec Module ===== | ===== Evrexec Module ===== |
cookbooks/devel/pseudovariables.txt · Last modified: 2022/04/11 13:24 by henningw