changeset 108:039a141a9c03

Update to reflect module rework.
date Fri, 22 Jan 2010 15:10:13 +0000
parents 958865cc13b3
children 10542170a145
diffstat 1 files changed, 4 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/	Sun Jan 03 01:49:40 2010 +0000
+++ b/	Fri Jan 22 15:10:13 2010 +0000
@@ -20,28 +20,18 @@
 If you want to build your own adhoc command, just register your adhoc command module with 
-module:add_item and a dictonary with name, node and a handler.
+module:add_item and a descriptor for your command.
-module:add_item ("adhoc", { name="Ping", node="ping", handler=ping_command_handler });
-Such a dictionary can be created for you using functionality provided by mod_adhoc like this:
+A descriptor can be created like this:
 local adhoc_new = module:require "adhoc".new;
 local descriptor = adhoc_new("Name", "node", handler);
 module:add_item ("adhoc", descriptor)
-This will additionally grant you the possibility to use
-desc:cmdtag(status, sessionID, action)
-to create a new command tag from within your handler.
-In this example desc is the first parameter to your handler.
 For a simple module and details have a look at mod_adhoc_cmd_ping.
 = Compatibility =
\ No newline at end of file
+||0.6||Most commands work||
\ No newline at end of file