DNS-SD service-instance ownership is defined by the TXT and SRV records at the full instance name. Build and return that sortable record set.
| 831 | // DNS-SD service-instance ownership is defined by the TXT and SRV records |
| 832 | // at the full instance name. Build and return that sortable record set. |
| 833 | static uint32_t BuildServiceProbeRecordSet(const RegisteredService& service, ProbeRecord* records, uint32_t max_records) |
| 834 | { |
| 835 | uint32_t count = 0; |
| 836 | if (count < max_records && BuildProbeRecord(service, service.m_FullServiceName, DNS_TYPE_TXT, &records[count])) |
| 837 | ++count; |
| 838 | if (count < max_records && BuildProbeRecord(service, service.m_FullServiceName, DNS_TYPE_SRV, &records[count])) |
| 839 | ++count; |
| 840 | return count; |
| 841 | } |
| 842 | |
| 843 | // Host ownership is currently represented by an IPv4 A record. |
| 844 | static uint32_t BuildHostProbeRecordSet(const RegisteredService& service, ProbeRecord* records, uint32_t max_records) |
no test coverage detected