Share via


SetClientAddress Method of the IFWXConnection Interface

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
    Pointer to a sockaddr structure that contains the address that the client used.

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

Return Value

  • 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

Server Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXConnection

Send comments about this topic to Microsoft

Build date: 6/30/2010