Share via


IFWXNetworkSocket::GetSockOpt method

Applies to: desktop apps only

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

Syntax

HRESULT GetSockOpt(
  [in]       int level,
  [in]       int optname,
  [out]      CHAR *optval,
  [in, out]  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 value

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

Header

Wspfwext.idl

DLL

Wspsrv.exe

See also

IFWXNetworkSocket

 

 

Build date: 7/12/2010