MCPcopy Create free account
hub / github.com/defold/defold / BuildServiceProbeRecordSet

Function BuildServiceProbeRecordSet

engine/dlib/src/dlib/mdns.cpp:833–841  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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)

Callers 3

BuildResponseMessageFunction · 0.85
BuildProbeMessageFunction · 0.85
HandleIncomingQueriesFunction · 0.85

Calls 1

BuildProbeRecordFunction · 0.85

Tested by

no test coverage detected