IFWXNetworkSocket::Connect method

Applies to: desktop apps only

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 [in]
    Pointer to a sockaddr structure that contains the address to which the connection is to be established.

  • AddressLength [in]
    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

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