|
WSASendDisconnect causes a socket to be closed for sending.
Syntax
int WSASendDisconnect( __in SOCKET s, __out LPWSABUF lpOutboundDisconnectData );
Parameters
s
Descriptor identifying a socket.
lpOutboundDisconnectData
Ignored. Pointer to the outgoing disconnect data.
Return Values
The number of bytes sent if the function succeeds, SOCKET_EROR if the function fails
Use WSAGetLastError to retrieve a specific error code.
Requirements
Library | Rtxtcpip.lib |