| Platform SDK: Windows Sockets |
The SO_LINKINFO socket option returns a LINKINFO_DN structure 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 );
| Parameter | Description |
|---|---|
| s | Descriptor identifying socket |
| level | DNPROTO_NSP |
| optname | SO_LINKINFO |
| optval | FAR * LINKINFO_DN structure |
| optlen | Sizeof(LINKINFO_DN) |
| lpErrno | Pointer to error code |
If no error occurs, WSPGetSockOpt returns zero and the LINKINFO_DN structure pointed to by optval contains 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.