Changes between Version 9 and Version 10 of TrickleApi


Ignore:
Timestamp:
Mar 29, 2014, 9:24:54 AM (10 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TrickleApi

    v9 v10  
    2222== Server-side API ==
    2323
    24 To handle trickle-up messages, use a 'trickle_handler' daemon. This is a program, based on sched/trickle_handler.cpp, linked with a function
     24To handle trickle-up messages, use a 'trickle_handler' daemon.
     25This is a program, based on sched/trickle_handler.cpp, linked with a function
    2526
    2627{{{
     
    3536}}}
    3637
    37 This function should return zero if the message was handled successfully; otherwise it will be retried later. The 'hostid' field identifies the host from which the message was sent. The daemon must be passed a '-variety X' command-line argument, telling it what kind of messages to handle. The daemon should be specified in the [ProjectDaemons project configuration file].
     38This function should return zero if the message was handled successfully.
     39The 'hostid' field identifies the host from which the message was sent.
     40The daemon must be passed a '--variety X' command-line argument, telling it what kind of messages to handle.
     41The daemon should be specified in the [ProjectDaemons project configuration file].
    3842
    39 To send send trickle-down messages (from a trickle handler daemon or other program) you must insert a record in the 'msg_to_host' table. From C/C++, this is done as follows:
     43To send trickle-down messages (from a trickle handler daemon or other program) you must insert a record in the 'msg_to_host' table.
     44From C/C++, this is done as follows:
    4045
    4146{{{
     
    5560}}}
    5661
    57 To send trickle-down messages, you must include
     62To send trickle-down messages, include
    5863
    5964{{{