---
name: "DNAS_gatherinfo"
section: "3"
platform: "linux"
package: "dmachinemon"
version: "0.32.5-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/DNAS_gatherinfo"
---

# DNAS\_gatherinfo(3)

gather info

## NAME

DNAS\_gatherinfo - gather info

## SYNOPSIS

**#include \<dmachinemon/dmachinemon-libp2papplication.h\>**

**char \*\*DNAS\_gatherinfo**\
 **(**\
\
 	**const char \*TAG,**\
\
 	**dm\_commandoption \*p2pcdat**\
 **);**

## PARAMETERS

- **const char \*TAG**

  Name of tag to search for.

- **dm\_commandoption \*p2pcdat**

  Command line parameter option.

## DESCRIPTION

Gather information with the specified tag from the immediate uplink. Other nodes have already sent this information using ndinfo}. Information obtained with this function should be freed with einfo}.

There is a notable delay between sendinfo and actually receiving information via gatherinfo.

Cdat cannot be used in this function, unless external interface is to be broken.

@See dm\_freeinfo @see dm\_sendinfo @return array of character pointers, or NULL on failure. @Version 0.31.0 changed name to DNAS\_Finalize from dm\_Finalize, requires pointer to cdat.

## SEE ALSO

[DNAS\_Init(3)](/DNAS_Init/3.md), [DNAS\_Finalize(3)](/DNAS_Finalize/3.md), [DNAS\_sendinfo(3)](/DNAS_sendinfo/3.md), [DNAS\_freeinfo(3)](/DNAS_freeinfo/3.md)
