WSASendDisconnect

WSASendDisconnect causes a socket to be closed for sending.

Syntax

Copy
int WSASendDisconnect(
    SOCKET s,
    LPWSABUF lpOutboundDisconnectData
);

Parameters

s

Descriptor identifying a socket.

lpOutboundDisconnectData

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