Share via


IFWXConnection::SetClientAddress method

Applies to: desktop apps only

The SetClientAddress method gives the client address for a connection returned by the IFWXSession::BindForClient method for which the client address was not previously specified.

Syntax

HRESULT SetClientAddress(
  [in]  LPSOCKADDR ClientAddress,
  [in]  DWORD ClientAddressLength
);

Parameters

  • ClientAddress [in]
    Pointer to a sockaddr structure that contains the address that the client used.

  • ClientAddressLength [in]
    Length, in bytes, of the ClientAddress parameter.

Return value

This method can return one of these values.

  • S_OK
    The method succeeded.

  • E_INVALIDARG
    Invalid address passed to the method, or the client address was already specified.

  • HRESULT_FROM_WIN32(Windows error code)
    Windows Sockets (Winsock) or Windows error code. The method failed.

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

IFWXConnection

 

 

Build date: 7/12/2010