Query: getnodebyaddr
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETNODEBYADDR(3) Library Functions Manual GETNODEBYADDR(3)NAMEgetnodebyaddr - DECnet node entry retrieval by addressSYNOPSIS#include <netdnet/dn.h> #include <netdnet/dnetdb.h> struct nodeent *getnodebyaddr (char *addr, short len, const int family)DESCRIPTIONgetnodebyaddr searches the decnet hosts file for the DECnet node with address equal to addr of len bytes, belonging to protocol family fam- ily (PF_DECnet) and returns node information into the nodeent structure. If no entry is found, returns NULLEXAMPLE#include <netdnet/dn.h> #include <netdnet/dnetdb.h> #include <sys/socket.h> main(void) { struct dn_naddr binaddr; struct nodeent *dp; binaddr->a_len = 2; binaddr->a_addr[0] = 0x02; binaddr->a_addr[1] = 0x04; if ( (dp=getnodebyaddr(binaddr->a_addr,binaddr->len, PF_DECnet)) == NULL) printf("Error, cannot find node entry"); else printf("Node name is %s",dp->n_name); }SEE ALSOdnet_htoa(3), dnet_ntoa(3), dnet_conn(3), dnet_addr(3), getnodebyname(3), getnodeadd(3), setnodeent(3) DECnet database functions July 28, 1998 GETNODEBYADDR(3)
Related Man Pages |
---|
dnet_accept(3) - debian |
dnet_endnode(3) - debian |
dnet_getnode(3) - debian |
getnodebyaddr(3) - debian |
getnodeadd(3) - debian |
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
Installing Dash Shell on OS X Lion |
awk or sed - Convert 2 lines to 1 line |
Is UNIX an open source OS ? |
Weird 'find' results |