Microsoft Internet Security and Acceleration Server 2004 SDK

IFWXNetworkSocket::Bind

The Bind method associates a local address with a socket. This method is similar to the Winsock bind function.

HRESULT Bind(
  LPSOCKADDR Address,
  INT AddressLength,
  IFWXIpFilter* pIpFilter
);

Parameters

Address
[in] Pointer to a sockaddr structure that contains the address to assign to the socket.
AddressLength
[in] Length, in bytes, of the Address parameter.
pIpFilter
[in] Pointer to the IFWXIpFilter interface. The socket that is bound by using IFWXNetworkSocket::Bind will be restricted according to that IP filter, a range of IP addresses for which a connection or socket is allowed to function. If you specify NULL for this parameter, the socket will not be restricted.

Return Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Wspfwext.idl.

See Also

IFWXNetworkSocket