CFHostGetAddressing(_:_:)
Gets the addresses from a host.
Declaration
func CFHostGetAddressing(_ theHost: CFHost, _ hasBeenResolved: UnsafeMutablePointer<DarwinBoolean>?) -> Unmanaged<CFArray>?Parameters
- theHost:
The CFHost whose addresses are to be obtained. This value must not be
NULL. - hasBeenResolved:
On return, a pointer to a Boolean that is
TRUEif addresses were available andFALSEif addresses were not available. This parameter can be null.
Discussion
This function gets the addresses from a CFHost. The CFHost must have been previously resolved. To resolve a CFHost, call CFHostStartInfoResolution(_:_:_:).
Special Considerations
This function gets the addresses in a thread-safe way, but the resulting data is not thread-safe. The data is returned as a “get” as opposed to a copy, so the data is not safe if the CFHost is altered from another thread.
See Also
Hosts
CFHostCFHostInfoTypeCFHostClientContextCFHostCancelInfoResolution(_:_:)CFHostCreateCopy(_:_:)CFHostCreateWithAddress(_:_:)CFHostCreateWithName(_:_:)CFHostGetNames(_:_:)CFHostGetReachability(_:_:)CFHostGetTypeID()CFHostScheduleWithRunLoop(_:_:_:)CFHostSetClient(_:_:_:)CFHostStartInfoResolution(_:_:_:)CFHostUnscheduleFromRunLoop(_:_:_:)