Rechercher une page de manuel
dnet_htoa
Langue: en
Version: 266798 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
dnet_htoa - DECnet address to host name translationSYNOPSIS
#include <netdnet/dn.h>#include <netdnet/dnetdb.h>
char *dnet_htoa (struct dn_naddr *addr)
DESCRIPTION
dnet_htoa searches the decnet hosts file for addr and returns the DECnet node name.
If no entry is found, returns the ascii DECnet address in the format area.node (1.1, 1.2, etc)
EXAMPLE
#include <netdnet/dn.h> #include <netdnet/dnetdb.h> #include <sys/socket.h> main(void) { struct dn_naddr binaddr; binaddr.a_len = 2; binaddr.a_addr[0] = 0x02; binaddr.a_addr[1] = 0x04; printf ("DECnet node name is %s",dnet_htoa(binaddr)); }
SEE ALSO
dnet_addr(3), dnet_ntoa(3), dnet_conn(3), getnodeadd(3), getnodebyname(3), getnodebyaddr(3), setnodeent(3)
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre