Platform SDK: Windows Sockets |
The getnodebyaddr identifier 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 one to six 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 );
Parameter | Description |
---|---|
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). |
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.