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 RTX64 2013
Header Winsock2.h
Library RtTcpip.lib