getnodebyname(3) debian man page | unix.com

Man Page: getnodebyname

Operating Environment: debian

Section: 3

GETNODEBYNAME(3)					     Library Functions Manual						  GETNODEBYNAME(3)

NAME
getnodebyname - DECnet node entry retrieval by address
SYNOPSIS
#include <netdnet/dn.h> #include <netdnet/dnetdb.h> struct nodeent *getnodebyname (char *name)
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); }
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)
Related Man Pages
dnet_accept(3) - debian
dnet_endnode(3) - debian
dnet_htoa(3) - debian
roardecnet(7) - debian
decnet.proxy(5) - debian
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
Find columns in a file based on header and print to new file
A (ksh) Library For and From UNIX.com
New UNIX and Linux History Sections
My first PERL incarnation... Audio Oscillograph