To get the address of the DECnet peer to which a socket is connected, the parameter name should point to a sockaddr_dn structure.
#include <ws2dnet.h>
int WSAAPI getpeername ( SOCKET s, struct sockaddr_dn FAR * name, int FAR * namelen );
int WSPAPI WSPGetPeerName( SOCKET s, struct sockaddr_dn FAR * name, int FAR * namelen, int FAR * lpErrno );
name | A pointer to a sockaddr_dn structure that will return the DECnet address of the DECnet peer to which a socket is connected. |