WSARecvDisconnect
WSARecvDisconnect causes a socket to be closed for receiving.
Syntax
int WSARecvDisconnect(
SOCKET s,
LPWSABUF lpInboundDisconnectData
);
Parameters
s
Descriptor identifying a socket.
lpInboundDisconnectData
Ignored.
Return Value
The number of bytes sent if the function succeeds, SOCKET_EROR if the function fails.
Use WSAGetLastError to retrieve a specific error code.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
winsock2.h |
RttcpipApi.lib |