com.apple.dnssd
Interface DNSRecord


public interface DNSRecord

Reference to a record returned by DNSSDRegistration.addRecord(int, int, byte[], int).

Note: client is responsible for serializing access to these objects if they are shared between concurrent threads.


Method Summary
 void remove()
          Remove a registered resource record.
 void update(int flags, byte[] rData, int ttl)
          Update a registered resource record.
 

Method Detail

update

void update(int flags,
            byte[] rData,
            int ttl)
            throws DNSSDException
Update a registered resource record.

The record must either be the primary txt record of a service registered via DNSSD.register(), or a record added to a registered service via addRecord().

Parameters:
flags - Currently unused, reserved for future use.

rData - The new rdata to be contained in the updated resource record.

ttl - The time to live of the updated resource record, in seconds.
Throws:
DNSSDException

remove

void remove()
            throws DNSSDException
Remove a registered resource record.

Throws:
DNSSDException