Example #1
0
        private void EncodeQuestions(IDnsResponse response, IByteBuffer buffer)
        {
            int count = response.Count(DnsSection.QUESTION);

            for (int i = 0; i < count; i++)
            {
                recordEncoder.EncodeQuestion(response.GetRecord <IDnsQuestion>(DnsSection.QUESTION, i), buffer);
            }
        }
Example #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);
            }
        }