CFNetServiceGetTargetHost(_:)
Queries a CFNetService for its target hosts.
Declaration
func CFNetServiceGetTargetHost(_ theService: CFNetService) -> Unmanaged<CFString>?Parameters
- theService:
Network service to be queried.
Return Value
The target host name of the machine providing the service or NULL is of the service’s target host is not known. (The target host will not be known if it has not been resolved.)
Discussion
This function is thread safe, but the target host name is not safe if the service is altered from another thread.
See Also
Network Services
CFNetServiceCFNetServiceBrowserCFNetServiceBrowserFlagsCFNetServiceMonitorCFNetServiceMonitorTypeCFNetServiceClientContextCFNetServiceRegisterFlagsCFNetServicesErrorCFNetServiceBrowserInvalidate(_:)CFNetServiceBrowserScheduleWithRunLoop(_:_:_:)CFNetServiceBrowserCreate(_:_:_:)CFNetServiceBrowserGetTypeID()CFNetServiceBrowserSearchForDomains(_:_:_:)CFNetServiceBrowserSearchForServices(_:_:_:_:)CFNetServiceBrowserStopSearch(_:_:)