WSASendDisconnect
WSASendDisconnect causes a socket to be closed for sending.
Syntax
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 | RTX64 2013 |
Header | Winsock2.h |
Library | RtTcpip.lib |