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

Function BuildHostProbeRecordSet

engine/dlib/src/dlib/mdns.cpp:844–850  ·  view source on GitHub ↗

Host ownership is currently represented by an IPv4 A record.

Source from the content-addressed store, hash-verified

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)
845 {
846 uint32_t count = 0;
847 if (service.m_ProbeHost && count < max_records && BuildProbeRecord(service, service.m_HostLocal, DNS_TYPE_A, &records[count]))
848 ++count;
849 return count;
850 }
851
852 // RFC 6762 compares tentative records lexicographically as unsigned bytes.
853 static int CompareProbeData(const uint8_t* a, uint16_t a_length, const uint8_t* b, uint16_t b_length)

Callers 2

BuildProbeMessageFunction · 0.85
HandleIncomingQueriesFunction · 0.85

Calls 1

BuildProbeRecordFunction · 0.85

Tested by

no test coverage detected