Microsoft Internet Security and Acceleration Server 2004 SDK

IFWXNetworkSocket::GetSockOpt

The GetSockOpt method retrieves a socket option. This method is similar to the Winsock getsockopt function.

HRESULT GetSockOpt(
  int level,
  int optname,
  char* optval,
  int optlen
);

Parameters

level
[in] Level at which the option is defined. The supported levels include SOL_SOCKET and IPPROTO_TCP.
optname
[in] Socket option for which the value is to be retrieved.
optval
[out] Pointer to a buffer that receives the value of the requested option.
optlen
[in, out] Size, in bytes, of the optval buffer.

Return Values

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

For an IFWXNetworkSocket interface created by a call to IFWXSession::CreateNetworkSocket, this method returns E_NOTIMPL.

Requirements

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

See Also

IFWXNetworkSocket