Gets the type from a CFNetService.
SDKs
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- CFNetwork
Declaration
CFString Ref CFNetServiceGetType(CFNet Service Ref theService);
Parameters
theService
The CFNetService whose type is to be obtained; cannot be
NULL
.
Return Value
A CFString object containing the type from a CFNetService.
Discussion
This function gets the type of a CFNetService.
Special Considerations
This function is thread safe. The function gets the data in a thread-safe way, but the data is not safe if the service is altered from another thread.