Microsoft Internet Security and Acceleration Server 2004 SDK

IFWXSocket::Close

The Close method closes the socket.

HRESULT Close(
  BOOLEAN fAbortive
);

Parameters

fAbortive
[in] Close-type flag. If TRUE, the connection will be hard closed (RST packet). If FALSE, it will not be hard closed (FIN packet).

Return Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

A hard close is done by setting the SO_DONTLINGER option in the Winsock setsockopt function.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Wspfwext.idl.

See Also

IFWXSocket