Microsoft Internet Security and Acceleration Server 2000

IFWXConnection::GetExternalPeerName Method

Gets the peer name for the external socket. This method is implemented by calling the Winsock getpeername function on the actual external socket.

HRESULT GetExternalPeerName(
  LPINT AddressLength


[out] Pointer to a sockaddr structure that receives the peer name.
[in, out] On input, this parameter specifies the size, in bytes, of the Address buffer. On output, it receives the size, in bytes, needed to hold the address.


When the proxy is chained to another proxy, this function returns the value for the last proxy in the chain.

Note  This method should not be called from the session event handling portion of your filter code; at that point in the code the network connection has not been established yet, and may be denied by the application filter or by another application filter. Typically you would call this method from within the IFWXDataFilter::SetSockets method of a data filter attached to the connection, that is, at a point when you are certain that the connection has been established.