Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Aliases DnsStartNextRecordFunc

1
2
3
4
5
6
7
8
9
module juptune.dns.encoding;

alias DnsStartNextRecordFunc = Result function(
    const char[] domainName, 
    ushort recordType, 
    ushort recordClass, 
    uint ttl, 
    MemoryWriter* rbodyWriter
);

Documentation

Provided by dnsEncodeQueryto the caller's putAdditionalRecordsfunction. Allows the caller to add an entry into the additional records section of a DNS query.

Notes

This function can be called multiple times. Each time it is called, the previous call's record is automatically finalised.

Since the recordTypeand recordClassfields can be interpreted in special ways (e.g. for the OPT pseduo-RR), they're typed as raw ushorts rather than something more concrete.

If rbodyWriterfails to write data, it's recommended to return a result of DnsEncodingError.bufferTooSmall.

Params

Throws

DnsEncodingError.bufferTooSmallif the write buffer is too small to fit the encoded record.

Anything dnsSplitDomainNamecan throw.

Returns

A Result