Beispiel #1
0
        private void EncodeRecords(IDnsQuery query, DnsSection section, IByteBuffer buffer)
        {
            int count = query.Count(section);

            for (int i = 0; i < count; i++)
            {
                recordEncoder.EncodeRecord(query.GetRecord <IDnsRecord>(section, i), buffer);
            }
        }
Beispiel #2
0
        private void EncodeQuestions(IDnsQuery query, IByteBuffer buffer)
        {
            int count = query.Count(DnsSection.QUESTION);

            for (int i = 0; i < count; i++)
            {
                recordEncoder.EncodeQuestion(query.GetRecord <IDnsQuestion>(DnsSection.QUESTION, i), buffer);
            }
        }