Gets the addresses from a host.
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
The CFHost whose addresses are to be obtained. This value must not be
On return, a pointer to a Boolean that is
TRUEif addresses were available and
FALSEif addresses were not available. This parameter can be null.
A CFArray of addresses where address is a
sockaddrstructure wrapped by a CFDataRef, or null if no addresses were available.
This function gets the addresses from a CFHost. The CFHost must have been previously resolved. To resolve a CFHost, call
This function gets the addresses in a thread-safe way, but the resulting data is not thread-safe. The data is returned as a “get” as opposed to a copy, so the data is not safe if the CFHost is altered from another thread.