logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

getnodeadd - DECnet address of executor node

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

Name

       getnodeadd - DECnet address of executor node

See Also

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

DECnet database functions                         July 28, 1998                                    GETNODEADD(3)

Synopsis

#include<netdnet/dn.h>#include<netdnet/dnetdb.h>structdn_naddr*getnodeadd(void)

See Also