Poster of Linux kernelThe best gift for a Linux geek
GETNODEADD

GETNODEADD

Section: C Library Functions (3) Updated: July 28, 1998
Local index Up
 

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 succesfully got executor node address");
}

 

SEE ALSO

dnet_htoa(3), dnet_ntoa(3), dnet_conn(3), dnet_addr(3), getnodebyname(3), getnodebyaddr(3), setnodeent(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:46:43 GMT, April 16, 2011