Connect Method of the IFWXNetworkSocket Interface

The Connect method establishes a connection to a specified socket. This method is similar to the Winsock connect function.

Syntax

HRESULT Connect(
  [in]  LPSOCKADDR Address,
  [in]  DWORD AddressLength
);

Parameters

Address

Pointer to a sockaddr structure that contains the address to which the connection is to be established.

AddressLength

Length, in bytes, of the Address parameter.

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 IFWXFirewall2::CreateSSLNetworkSocket, this method returns E_NOTIMPL.

Requirements

Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXNetworkSocket


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.