Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

getnodebyname - DECnet node entry retrieval by address

Description

getnodebyname searches the decnet hosts file for the DECnet node with name equal to name and returns node
       information into the nodeent structure.
       If no entry is found, returns NULL

Example

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

       main(void)
       {
           struct nodeent      *dp;

           if ( (dp=getnodebyname("mv3100")) == NULL)
               printf("Error, cannot find node entry");
           else
               printf("Node name is %s",dp->n_name);
       }

Name

       getnodebyname - DECnet node entry retrieval by address

See Also

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

DECnet database functions                         July 28, 1998                                 GETNODEBYNAME(3)

Synopsis

#include<netdnet/dn.h>#include<netdnet/dnetdb.h>structnodeent*getnodebyname(char*name)

See Also