CFHostCreateCopy(_:_:)
Creates a new host object by copying.
Declaration
func CFHostCreateCopy(_ alloc: CFAllocator?, _ host: CFHost) -> Unmanaged<CFHost>Parameters
- alloc:
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
Return Value
A valid CFHost object or NULL if the copy could not be created. The new host contains a copy of all previously resolved data from the original host. Ownership follows the The Create Rule.
Discussion
This function is thread safe.
See Also
Hosts
CFHostCFHostInfoTypeCFHostClientContextCFHostCancelInfoResolution(_:_:)CFHostCreateWithAddress(_:_:)CFHostCreateWithName(_:_:)CFHostGetAddressing(_:_:)CFHostGetNames(_:_:)CFHostGetReachability(_:_:)CFHostGetTypeID()CFHostScheduleWithRunLoop(_:_:_:)CFHostSetClient(_:_:_:)CFHostStartInfoResolution(_:_:_:)CFHostUnscheduleFromRunLoop(_:_:_:)