getnodebyaddr

The getnodebyaddr function searches for a DECnet node name that matches a specified DECnet address. The address is a 16-bit binary DECnet address, where the high 6 bits are the DECnet area number and the low 10 bits are the DECnet node number. DECnet Phase IV node names consist of 1 to 6 alphanumeric characters with at least one alphabetic character.

#include <ws2dnet.h>

struct nodeent_f  FAR *WSAAPI getnodebyaddr(const unsigned char FAR *addr, int len, int type);
 
addr Pointer to the address for which getnodebyaddr should search.
len Length in bytes of the requested address (range DN_ADDL to DN_MAXADDL).
type Address family of the address (AF_DECnet).

Return Values

The function returns a pointer to a static nodeent_f structure. The application must copy this data before issuing another getnodebyaddr call. If the end of file is reached, a NULL pointer is returned.