|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DNSSDRecordRegistrar
An object for registering records, created by DNSSD.createRecordRegistrar(com.apple.dnssd.RegisterRecordListener)
.
Method Summary | |
---|---|
DNSRecord |
registerRecord(int flags,
int ifIndex,
java.lang.String fullname,
int rrtype,
int rrclass,
byte[] rdata,
int ttl)
Register an independent DNSRecord . |
Methods inherited from interface com.apple.dnssd.DNSSDService |
---|
stop |
Method Detail |
---|
DNSRecord registerRecord(int flags, int ifIndex, java.lang.String fullname, int rrtype, int rrclass, byte[] rdata, int ttl) throws DNSSDException
DNSRecord
.
flags
- Possible values are SHARED or UNIQUE (see flag type definitions for details).
ifIndex
- If non-zero, specifies the interface on which to register the record
(the index for a given interface is determined via the if_nametoindex()
family of calls.) Passing 0 causes the record to be registered on all interfaces.
fullname
- The full domain name of the resource record.
rrtype
- The numerical type of the resource record to be queried for (e.g. PTR, SRV, etc)
as defined in nameser.h.
rrclass
- The class of the resource record, as defined in nameser.h
(usually 1 for the Internet class).
rData
- The new rdata as it is to appear in the DNS record.
ttl
- The time to live of the resource record, in seconds. Pass 0 to use a default value.
listener
- This object will get called when the service is registered.
DNSSDService
that can be used to abort the record registration.
java.lang.SecurityException
- If a security manager is present and denies RuntimePermission("getDNSSDInstance").
DNSSDException
RuntimePermission
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |