/external/jmdns/src/javax/jmdns/impl/ |
D | DNSMessage.java | 44 protected final List<DNSRecord> _answers; 46 protected final List<DNSRecord> _authoritativeAnswers; 48 protected final List<DNSRecord> _additionals; 61 _answers = Collections.synchronizedList(new LinkedList<DNSRecord>()); in DNSMessage() 62 _authoritativeAnswers = Collections.synchronizedList(new LinkedList<DNSRecord>()); in DNSMessage() 63 _additionals = Collections.synchronizedList(new LinkedList<DNSRecord>()); in DNSMessage() 134 public Collection<? extends DNSRecord> getAllAnswers() { in getAllAnswers() 135 …List<DNSRecord> aList = new ArrayList<DNSRecord>(_answers.size() + _authoritativeAnswers.size() + … in getAllAnswers() 145 public Collection<? extends DNSRecord> getAnswers() { in getAnswers() 159 public Collection<? extends DNSRecord> getAuthorities() { in getAuthorities() [all …]
|
D | HostInfo.java | 161 public boolean conflictWithRecord(DNSRecord.Address record) { in conflictWithRecord() 162 …DNSRecord.Address hostAddress = this.getDNSAddressRecord(record.getRecordType(), record.isUnique()… in conflictWithRecord() 198 DNSRecord.Address getDNSAddressRecord(DNSRecordType type, boolean unique, int ttl) { in getDNSAddressRecord() 210 private DNSRecord.Address getDNS4AddressRecord(boolean unique, int ttl) { in getDNS4AddressRecord() 212 …return new DNSRecord.IPv4Address(this.getName(), DNSRecordClass.CLASS_IN, unique, ttl, this.getIne… in getDNS4AddressRecord() 217 private DNSRecord.Address getDNS6AddressRecord(boolean unique, int ttl) { in getDNS6AddressRecord() 219 …return new DNSRecord.IPv6Address(this.getName(), DNSRecordClass.CLASS_IN, unique, ttl, this.getIne… in getDNS6AddressRecord() 224 DNSRecord.Pointer getDNSReverseAddressRecord(DNSRecordType type, boolean unique, int ttl) { in getDNSReverseAddressRecord() 236 private DNSRecord.Pointer getDNS4ReverseAddressRecord(boolean unique, int ttl) { in getDNS4ReverseAddressRecord() 238 …return new DNSRecord.Pointer(this.getInetAddress().getHostAddress() + ".in-addr.arpa.", DNSRecordC… in getDNS4ReverseAddressRecord() [all …]
|
D | DNSRecord.java | 32 public abstract class DNSRecord extends DNSEntry { class 33 private static Logger logger = Logger.getLogger(DNSRecord.class.getName()); 45 … DNSRecord(String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique, int ttl) { in DNSRecord() method in DNSRecord 57 return (other instanceof DNSRecord) && super.equals(other) && sameValue((DNSRecord) other); in equals() 63 abstract boolean sameValue(DNSRecord other); in sameValue() 68 boolean sameType(DNSRecord other) { in sameType() 96 for (DNSRecord answer : msg.getAllAnswers()) { in suppressedBy() 112 boolean suppressedBy(DNSRecord other) { in suppressedBy() 155 void resetTTL(DNSRecord other) { in resetTTL() 263 public static abstract class Address extends DNSRecord { [all …]
|
D | DNSQuestion.java | 36 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { in addAnswers() 37 …DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordCla… in addAnswers() 60 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { in addAnswers() 61 …DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordCla… in addAnswers() 93 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { in addAnswers() 101 …answers.add(new DNSRecord.Pointer("_services._dns-sd._udp.local.", DNSRecordClass.CLASS_IN, DNSRec… in addAnswers() 133 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { in addAnswers() 167 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { in addAnswers() 194 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { in addAnswers() 274 public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { in addAnswers() [all …]
|
D | DNSOutgoing.java | 154 void writeRecord(DNSRecord rec, long now) { in writeRecord() 261 public void addAnswer(DNSIncoming in, DNSRecord rec) throws IOException { in addAnswer() 274 public void addAnswer(DNSRecord rec, long now) throws IOException { in addAnswer() 296 public void addAuthorativeAnswer(DNSRecord rec) throws IOException { in addAuthorativeAnswer() 315 public void addAdditionalAnswer(DNSIncoming in, DNSRecord rec) throws IOException { in addAdditionalAnswer() 346 for (DNSRecord record : _answers) { in data() 349 for (DNSRecord record : _authoritativeAnswers) { in data() 352 for (DNSRecord record : _additionals) { in data() 419 for (DNSRecord record : _answers) { in toString() 426 for (DNSRecord record : _authoritativeAnswers) { in toString() [all …]
|
D | DNSIncoming.java | 209 DNSRecord rec = this.readAnswer(source); in DNSIncoming() 219 DNSRecord rec = this.readAnswer(source); in DNSIncoming() 229 DNSRecord rec = this.readAnswer(source); in DNSIncoming() 282 private DNSRecord readAnswer(InetAddress source) { in readAnswer() 296 DNSRecord rec = null; in readAnswer() 300 …rec = new DNSRecord.IPv4Address(domain, recordClass, unique, ttl, _messageInputStream.readBytes(le… in readAnswer() 303 …rec = new DNSRecord.IPv6Address(domain, recordClass, unique, ttl, _messageInputStream.readBytes(le… in readAnswer() 310 rec = new DNSRecord.Pointer(domain, recordClass, unique, ttl, service); in readAnswer() 316 … rec = new DNSRecord.Text(domain, recordClass, unique, ttl, _messageInputStream.readBytes(len)); in readAnswer() 331 … rec = new DNSRecord.Service(domain, recordClass, unique, ttl, priority, weight, port, target); in readAnswer() [all …]
|
D | JmDNSImpl.java | 759 …DNSEntry pointerEntry = this.getCache().getDNSEntry(new DNSRecord.Pointer(type, DNSRecordClass.CLA… in getServiceInfoFromCache() 760 if (pointerEntry instanceof DNSRecord) { in getServiceInfoFromCache() 761 …ServiceInfoImpl cachedInfo = (ServiceInfoImpl) ((DNSRecord) pointerEntry).getServiceInfo(persisten… in getServiceInfoFromCache() 769 if (serviceEntry instanceof DNSRecord) { in getServiceInfoFromCache() 770 … ServiceInfo cachedServiceEntryInfo = ((DNSRecord) serviceEntry).getServiceInfo(persistent); in getServiceInfoFromCache() 778 if (addressEntry instanceof DNSRecord) { in getServiceInfoFromCache() 779 … ServiceInfo cachedAddressInfo = ((DNSRecord) addressEntry).getServiceInfo(persistent); in getServiceInfoFromCache() 788 if (addressEntry instanceof DNSRecord) { in getServiceInfoFromCache() 789 … ServiceInfo cachedAddressInfo = ((DNSRecord) addressEntry).getServiceInfo(persistent); in getServiceInfoFromCache() 798 if (textEntry instanceof DNSRecord) { in getServiceInfoFromCache() [all …]
|
D | ServiceInfoImpl.java | 29 import javax.jmdns.impl.DNSRecord.Pointer; 30 import javax.jmdns.impl.DNSRecord.Service; 31 import javax.jmdns.impl.DNSRecord.Text; 594 return (this._text != null && this._text.length > 0 ? this._text : DNSRecord.EMPTY_TXT); in getTextBytes() 866 if ((rec instanceof DNSRecord) && !rec.isExpired(now)) { in updateRecord() 871 _ipv4Addresses.add((Inet4Address) ((DNSRecord.Address) rec).getAddress()); in updateRecord() 877 _ipv6Addresses.add((Inet6Address) ((DNSRecord.Address) rec).getAddress()); in updateRecord() 883 DNSRecord.Service srv = (DNSRecord.Service) rec; in updateRecord() 906 DNSRecord.Text txt = (DNSRecord.Text) rec; in updateRecord() 924 ServiceEvent event = ((DNSRecord) rec).getServiceEvent(dns); in updateRecord() [all …]
|
/external/jmdns/src/javax/jmdns/impl/tasks/resolver/ |
D | ServiceInfoResolver.java | 11 import javax.jmdns.impl.DNSRecord; 65 …newOut = this.addAnswer(newOut, (DNSRecord) this.getDns().getCache().getDNSEntry(_info.getQualifie… in addAnswers() 66 …newOut = this.addAnswer(newOut, (DNSRecord) this.getDns().getCache().getDNSEntry(_info.getQualifie… in addAnswers() 68 …newOut = this.addAnswer(newOut, (DNSRecord) this.getDns().getCache().getDNSEntry(_info.getServer()… in addAnswers() 69 …newOut = this.addAnswer(newOut, (DNSRecord) this.getDns().getCache().getDNSEntry(_info.getServer()… in addAnswers()
|
D | TypeResolver.java | 11 import javax.jmdns.impl.DNSRecord; 53 …newOut = this.addAnswer(newOut, new DNSRecord.Pointer("_services._dns-sd._udp.local.", DNSRecordCl… in addAnswers()
|
D | ServiceResolver.java | 12 import javax.jmdns.impl.DNSRecord; 50 …newOut = this.addAnswer(newOut, new DNSRecord.Pointer(info.getType(), DNSRecordClass.CLASS_IN, DNS… in addAnswers()
|
/external/jmdns/src/javax/jmdns/impl/tasks/ |
D | Responder.java | 16 import javax.jmdns.impl.DNSRecord; 101 Set<DNSRecord> answers = new HashSet<DNSRecord>(); in run() 121 for (DNSRecord knownAnswer : _in.getAnswers()) { in run() 142 for (DNSRecord answer : answers) { in run()
|
D | DNSTask.java | 11 import javax.jmdns.impl.DNSRecord; 110 … public DNSOutgoing addAnswer(DNSOutgoing out, DNSIncoming in, DNSRecord rec) throws IOException { in addAnswer() 141 public DNSOutgoing addAnswer(DNSOutgoing out, DNSRecord rec, long now) throws IOException { in addAnswer() 171 public DNSOutgoing addAuthoritativeAnswer(DNSOutgoing out, DNSRecord rec) throws IOException { in addAuthoritativeAnswer() 203 …public DNSOutgoing addAdditionalAnswer(DNSOutgoing out, DNSIncoming in, DNSRecord rec) throws IOEx… in addAdditionalAnswer()
|
/external/jmdns/src/javax/jmdns/impl/tasks/state/ |
D | Canceler.java | 12 import javax.jmdns.impl.DNSRecord; 104 …for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())… in buildOutgoingForDNS() 117 …for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalH… in buildOutgoingForInfo()
|
D | Announcer.java | 12 import javax.jmdns.impl.DNSRecord; 104 …for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())… in buildOutgoingForDNS() 117 …for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalH… in buildOutgoingForInfo()
|
D | Renewer.java | 12 import javax.jmdns.impl.DNSRecord; 105 …for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())… in buildOutgoingForDNS() 118 …for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalH… in buildOutgoingForInfo()
|
D | Prober.java | 13 import javax.jmdns.impl.DNSRecord; 118 …for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.NOT_UNIQUE, this.getTT… in buildOutgoingForDNS() 133 …newOut = this.addAuthoritativeAnswer(newOut, new DNSRecord.Service(info.getQualifiedName(), DNSRec… in buildOutgoingForInfo()
|
/external/mdnsresponder/mDNSShared/ |
D | dnssd_clientstub.c | 114 typedef struct _DNSRecordRef_t DNSRecord; typedef 143 DNSRecord *rec; 152 DNSRecord *recnext; 374 DNSRecord *rec = sdRef->rec; in FreeDNSRecords() 377 DNSRecord *next = rec->recnext; in FreeDNSRecords() 815 DNSRecord *rec; in CallbackWithError() 816 DNSRecord *recnext; in CallbackWithError() 1635 DNSRecord **p; in DNSServiceRegisterRecord() 1674 rref = malloc(sizeof(DNSRecord)); in DNSServiceRegisterRecord() 1708 DNSRecord **p; in DNSServiceAddRecord() [all …]
|