man DNAS_sendinfo (Fonctions bibliothèques) - Function to send information to the immediate uplink,

NAME

DNAS_sendinfo - Function to send information to the immediate uplink,

SYNOPSIS

#include <dmachinemon/dmachinemon-libp2papplication.h> int DNAS_sendinfo

(

const char *TAG,

const char *string,

dm_commandoption *p2pcdat

);

PARAMETERS

const char *TAG
TAG to identify information.
const char *string
The information string.
dm_commandoption *p2pcdat
Command line parameter option.

DESCRIPTION

To be gathered using Ref{dm_gatherinfo}.

Other nodes will be able to see the information sent with the TAG, for nodes which are connected to the same uplink, and all the children of the nodes which are connected to the same uplink.

It takes some time before the information is sent to uplink, namely the --sleep parameter given to dmachinemon-servent determines it.

Also this function should fail if dmachinemon-servent has terminated for some reason, maybe with --Dieonload option.

Unless --layers is specified when invoking dmachinemon-servent, the information that has been given with sendinfo will be available on all of the uplinks, with gatherinfo.

@Version 0.31.0 changed name to DNAS_Finalize from dm_Finalize, requires pointer to cdat @return 1 on error, 0 on success.

SEE ALSO