Contents

CFNetServiceGetTXTData(_:)

Queries a network service for the contents of its TXT records.

Declaration

func CFNetServiceGetTXTData(_ theService: CFNetService) -> Unmanaged<CFData>?

Parameters

Return Value

CFDataRef object containing the requested TXT data and suitable for passing to CFNetServiceCreateDictionaryWithTXTData(_:_:), or NULL if the service’s TXT data has not been resolved.

Discussion

This function gets the data from the service’s TXT records.

Special Considerations

This function gets the data in a thread-safe way, but the data itself is not safe if the service is altered from another thread.

See Also

Network Services