Esempio n. 1
0
 protected void Serialize(DnsResponse response, DnsBuffer buffer, int maxResponse)
 {
     buffer.Clear();
     response.Serialize(buffer);
     if (buffer.Count > maxResponse)
     {
         response.Truncate();
         buffer.Clear();
         response.Serialize(buffer);
     }
 }
Esempio n. 2
0
        public void Send(DnsResponse response)
        {
            DnsBuffer buffer = new DnsBuffer();

            response.Serialize(buffer);
            this.SendBuffer(buffer);
        }
Esempio n. 3
0
 void Serialize(DnsResponse response)
 {
     m_buffer.Clear();
     response.Serialize(m_buffer);
 }