Addressing with GetPeerName/WSPGetPeerName
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
);
Parameter |
Description |
name |
Pointer to a SOCKADDR_DN structure that will return the DECnet address of the DECnet peer to which a socket is connected. |