The SO_LINKINFO socket option returns a struct linkinfo_dn containing the current state of the specified DECnet logical link.
int WSPAPI WSPGetSockOpt(SOCKET s, int level, int optname, char FAR * optval, int far * optlen, int FAR * lpErrno);
s | descriptor identifying socket |
level | DNPROTO_NSP |
optname | SO_LINKINFO |
optval | struct FAR * linkinfo_dn |
optlen | sizeof(struct linkinfo_dn) |
lpErrno | pointer to error code |
If no error occurs, WSPGetSockOpt returns 0 and the linkinfo_dn structure pointed to by optval will contain the current transport segment size and logical link state. See the LL_* manifest constants for valid link states. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code is available in lpErrno.