The Bind method associates a local address with a socket. This method is similar to the Winsock bind function.
HRESULT Bind( [in] LPSOCKADDR Address, [in] INT AddressLength, [in] IFWXIpFilter* pIpFilter );
Pointer to a sockaddr structure that contains the address to assign to the socket.
Length, in bytes, of the Address parameter.
Pointer to an IFWXIpFilter interface. The socket that is bound by using IFWXNetworkSocket::Bind will be allowed to function only in the IP address ranges included in the IP filter specified. If you specify NULL for this parameter, the socket will not be restricted.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Server | Requires Windows Server 2008. |
---|---|
Version | Requires Forefront Threat Management Gateway (TMG). |
Header |
Declared in Wspfwext.idl. |
DLL |
Requires Wspsrv.exe. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.