Creates a copy of a CFNetService 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
kto use the current default allocator.
CFNetServiceRef to be copied; cannot be
serviceis not a valid CFNetServiceRef, the behavior of this function is undefined.
service, including all previously resolved data, or
service could not be copied. Ownership follows the The Create Rule.
This function creates a copy of the CFNetService specified by
This function is thread safe.