|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DNSSDRegistration
A tracking object for a registration created by DNSSD.register(int, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, com.apple.dnssd.TXTRecord, com.apple.dnssd.RegisterListener)
.
Method Summary | |
---|---|
DNSRecord |
addRecord(int flags,
int rrType,
byte[] rData,
int ttl)
Add a record to a registered service. |
DNSRecord |
getTXTRecord()
Get a reference to the primary TXT record of a registered service. |
Methods inherited from interface com.apple.dnssd.DNSSDService |
---|
stop |
Method Detail |
---|
DNSRecord getTXTRecord() throws DNSSDException
The record can be updated by sending it an update() message.
DNSRecord
.
If DNSSDService.stop()
is called, the DNSRecord is also
invalidated and may not be used further.
DNSSDException
DNSRecord addRecord(int flags, int rrType, byte[] rData, int ttl) throws DNSSDException
The name of the record will be the same as the registered service's name.
The record can be updated or deregistered by sending it an update() or remove() message.
flags
- Currently unused, reserved for future use.
rrType
- The type of the record (e.g. TXT, SRV, etc), as defined in nameser.h.
rData
- The raw rdata to be contained in the added resource record.
ttl
- The time to live of the resource record, in seconds.
DNSRecord
that may be passed to updateRecord() or removeRecord().
If DNSSDService.stop()
is called, the DNSRecord is also
invalidated and may not be used further.
DNSSDException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |