---
name: "getnodeadd"
section: "3"
platform: "linux"
package: "libdnet-dev"
version: "2.65+b1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/getnodeadd"
---

# getnodeadd(3)

DECnet address of executor node

## NAME

getnodeadd - DECnet address of executor node

## SYNOPSIS

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

**struct dn\_naddr \*getnodeadd (void)**

## DESCRIPTION

**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**

## EXAMPLE

```
#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");
}
```

## SEE ALSO

[**dnet\_htoa**(3)](/dnet_htoa/3.md), [**dnet\_ntoa**(3)](/dnet_ntoa/3.md), [**dnet\_conn**(3)](/dnet_conn/3.md), [**dnet\_addr**(3)](/dnet_addr/3.md), [**getnodebyname**(3)](/getnodebyname/3.md), [**getnodebyaddr**(3)](/getnodebyaddr/3.md), [**setnodeent**(3)](/setnodeent/3.md)
