class DnsContext
Defined at line 121 of file ../../src/firmware/gigaboot/cpp/mdns.h
Public Methods
void DnsContext (fbl::Vector<DnsNameSegment> segments, fbl::Vector<DnsRecord> records)
Context for DNS serialization.
This class owns name segments and records.
Name segments are modified as part of serialization due to DNS name compression,
and records hold pointers to name segments.
This class Wraps up that data so that structures are modified in a consistent manner
that preserves invariants.
Defined at line 129 of file ../../src/firmware/gigaboot/cpp/mdns.h
bool WriteRecords (zx::duration time_to_live, MdnsPacket & packet)
Serialize all owned mdns records to the packet.
Returns true if the packet had sufficient free space and the write succeeded, false otherwise.
Defined at line 156 of file ../../src/firmware/gigaboot/cpp/mdns.cc