CFHostCreateWithAddress(_:_:)
Uses an address to create an instance of a host object.
Declaration
func CFHostCreateWithAddress(_ allocator: CFAllocator?, _ addr: CFData) -> Unmanaged<CFHost>Parameters
- addr:
A CFDataRef object containing a
sockaddrstructure for the address of the host. This value must not beNULL.
Return Value
A valid CFHostRef object that can be resolved, or NULL if the host could not be created. Ownership follows the The Create Rule.
Discussion
Call CFHostStartInfoResolution(_:_:_:) to resolve the return object’s name and reachability information.
Special Considerations
This function is thread safe.
See Also
Hosts
CFHostCFHostInfoTypeCFHostClientContextCFHostCancelInfoResolution(_:_:)CFHostCreateCopy(_:_:)CFHostCreateWithName(_:_:)CFHostGetAddressing(_:_:)CFHostGetNames(_:_:)CFHostGetReachability(_:_:)CFHostGetTypeID()CFHostScheduleWithRunLoop(_:_:_:)CFHostSetClient(_:_:_:)CFHostStartInfoResolution(_:_:_:)CFHostUnscheduleFromRunLoop(_:_:_:)