Uses a name to create an instance of a host object.
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+
- tvOS 9.0+
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
A string representing the name of the host. This value must not be
A valid CFHostRef object that can be resolved, or
NULL if the host could not be created. Ownership follows the The Create Rule.
CFHost to resolve the object’s addresses and reachability information.
This function is thread safe.