Microsoft Internet Security and Acceleration Server 2004 SDK

IFWXNetworkSocket::GetSockName

The GetSockName method retrieves the local name of a socket. This method is similar to the Winsock getsockname function.

HRESULT GetSockName(
  LPSOCKADDR Address,
  LPINT AddressLength
);

Parameters

Address
[out] Pointer to a sockaddr structure that receives the socket address (name).
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 Values

S_OK
The method succeeded.
HRESULT_FROM_WIN32(WSAEINVAL)
The socket has not been bound to an address with bind.

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