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.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXConnection


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.