getnodeadd(3)

getnodeadd3

Decnet address of executor node

Usage

#include <netdnet/dn.h>
#include <netdnet/dnetdb.h>

struct dn_naddr *getnodeadd (void)

Overview

getnodeadd searches the decnet hosts file for the executor node and returns the DECnet address in the dn_naddr structure
If no entry is found, returns NULL

Examples

#include <netdnet/dn.h>
#include <netdnet/dnetdb.h>
#include <sys/socket.h>
main(void)
{
    struct dn_naddr		*binaddr;
    if ( (binaddr=getnodeadd()) == NULL)
	   printf("Error, cannot find executor node address");
    else
	   printf("getnodeadd successfully got executor node address");
}

Releases

9 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0–6.0
  2. 7–10

From libdnet-dev 2.65+b1 in Debian 10 (Buster). Parsed by carta from the page's man source.