Contents

CFNetServiceCreateDictionaryWithTXTData(_:_:)

Uses TXT record data to create a dictionary.

Declaration

func CFNetServiceCreateDictionaryWithTXTData(_ alloc: CFAllocator?, _ txtRecord: CFData) -> Unmanaged<CFDictionary>?

Parameters

Return Value

A dictionary containing the key/value pairs parsed from txtRecord, or NULL if txtRecord cannot be parsed. Each key in the dictionary is a CFString object, and each value is a CFData object. Ownership follows the The Create Rule.

Discussion

This function is thread safe.

See Also

Network Services