Reads a reply from the daemon, calling the appropriate application callback.
Terminates a connection with the daemon and frees memory associated with the DNSServiceRef.
Ref Sock FD
Accesses underlying Unix domain socket for an initialized DNSServiceRef.
A typical calling sequence for TXT record parsing is something like:
Receive TXT record data in
If you wish to retain the values after return from the
DNSService callback, then you need to copy the data to your own storage using memcpy() or similar, as shown in the example above.
If for some reason you need to parse a TXT record you built yourself using the TXT record construction functions above, then you can do that using TXTRecordGetLength and TXTRecordGetBytesPtr calls: TXTRecordGetValue(TXTRecordGetLength(x), TXTRecordGetBytesPtr(x), key, &len);
Most applications only fetch keys they know about from a TXT record and ignore the rest. However, some debugging tools wish to fetch and display all keys. To do that, use the TXTRecordGetCount() and TXTRecordGetItemAtIndex() calls.
Create Delegate Connection
Create a delegate connection to the daemon allowing efficient registration of multiple individual records.
Set Dispatch Queue
Allows you to schedule a DNSServiceRef on a serial dispatch queue for receiving asynchronous callbacks.
Allows you to determine if a given TXT Record contains a specified key.
Returns the number of keys stored in the TXT Record.
Get Item At Index
Allows you to retrieve a key name and value pointer, given an index into a TXT Record.
Get Value Ptr
Allows you to retrieve the value for a given key from a TXT Record.
Creates a new empty TXTRecordRef referencing the specified storage.
Releases resources associated with a TXT record.
Get Bytes Ptr
Allows you to retrieve a pointer to the raw bytes within a TXTRecordRef.
Allows you to determine the length of the raw bytes within a TXTRecordRef.
Removes a key from a TXTRecordRef.
Adds a key (optionally with value) to a TXTRecordRef.
Creates a connection to the daemon, allowing efficient registration of multiple individual records.
Instructs the daemon to verify the validity of a resource record that appears to be out of date (for example, because TCP connection to a service's target failed).
Registers an individual resource record on a connected DNSServiceRef.
Releases P2P connection resources associated with the service instance.
Adds a record to a registered service.
Registers a service.
Updates a registered resource record.
Callback for handling the results of previous calls to DNSServiceBrowse.