CSocketAddr::GetAddrInfo

Call this method to return a pointer to a specific element in the addrinfo list.

addrinfo* const GetAddrInfo( 
   int nIndex = 0
) const;

Parameters

  • nIndex
    A reference to a specific element in the addrinfo list.

Return Value

Returns a pointer to the addrinfo structure referenced by nIndex in the linked list containing response information about the host.

Requirements

Header: atlsocket.h

See Also

Concepts

CSocketAddr Class

CSocketAddr Members

CSocketAddr::GetAddrInfoList