IFWXNetworkSocket::GetPeerName method
Applies to: desktop apps only
The GetPeerName method retrieves the remote name of a socket. This method is similar to the Winsock getpeername function.
Syntax
HRESULT GetPeerName(
[out] LPSOCKADDR Address,
[out] LPINT AddressLength
);
Parameters
Address [out]
Pointer to a sockaddr structure that receives the address (name) of the peer.AddressLength [out]
On input, specifies the size, in bytes, of the Address buffer. On output, receives the buffer size, in bytes, needed to hold the address.
Return value
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Remarks
This method is used when a connection has been requested from outside the network, and you want to identify it.
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
Build date: 7/12/2010