Function Message.fill

Fill this Message's header, ensuring consistency with a query

ref Message fill (
  in const(Header) query
) pure nothrow @nogc return @safe;

This method allows a server to simplify a few of the tasks required when answering a DNS query: - It sets the ID in the header to match the query's; - It sets the header's *COUNT fields according to the arrays here; - It will perform any additional setup required based on the query;

Parameters

NameDescription
query The Header of the query

Returns

A reference to this