Gets the IP addressing from a CFNetService.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
The CFNetService whose IP addressing is to be obtained; cannot be
A CFArray containing a CFDataRef for each IP address returned, or
NULL. Each CFDataRef consists of a
sockaddr structure containing the IP address of the service. This function returns
NULL if the service’s addressing is unknown because
CFNet has not been called for
This function gets the IP addressing from a CFNetService. Typically, the CFNetService was obtained by calling
CFNet. Before calling this function, call
CFNet to update the CFNetService with its IP addressing.
This function gets the data in a thread-safe way, but the data itself is not safe if the service is altered from another thread.