Return TypeFunction nameArguments
voidhzDNS::Show(hzChain&,)

Declared in file: hzDNS.h
Defined in file : hzDNS.cpp

Function Logic:

0:START 1:hzChain::Printf hzList::Count hzChain::Printf hzList::Count hzChain::Printf hzList::Count hzChain::Printf hzList::Count hzChain::Printf hzList::Count 2:m_arAns.Count() 3:hzChain::Printf ir 4:ir.Valid(); 5:hzList::Iter::Element dr 6:dr.m_Server 7:hzChain::Printf 8:hzChain::Printf 9:dr.m_Ipa 10:hzChain::Printf 11:hzChain::AddByte 12:m_arAut.Count() 13:hzChain::Printf ir 14:ir.Valid(); 15:hzList::Iter::Element dr 16:dr.m_Server 17:hzChain::Printf 18:hzChain::Printf 19:dr.m_Ipa 20:hzChain::Printf 21:hzChain::AddByte 22:m_arAdd.Count() 23:hzChain::Printf ir 24:ir.Valid(); 25:hzList::Iter::Element dr 26:dr.m_Server 27:hzChain::Printf 28:hzChain::Printf 29:dr.m_Ipa 30:hzChain::Printf 31:hzChain::AddByte 32: No text

Function body:

void hzDNS::Show (hzChain& Result)
{
   _hzfunc("hzDNS::Show") ;
   hzList<DnsRec>::Iter    ir ;
   DnsRec      dr ;
   Result.Printf("Querry id:   %d\n", m_qID) ;
   Result.Printf("Questions:   %d\n", m_arQus.Count()) ;
   Result.Printf("Answers:     %d\n", m_arAns.Count()) ;
   Result.Printf("Authorative: %d\n", m_arAut.Count()) ;
   Result.Printf("Additional:  %d\n", m_arAdd.Count()) ;
   if (m_arAns.Count())
   {
       Result.Printf("\n;; ANSWER SECTION             Type Class    TTL  Len Value Server\n") ;
       for (ir = m_arAns ; ir.Valid() ; ir++)
       {
           dr = ir.Element() ;
           if (dr.m_Server)
               Result.Printf("%-29s %4d  %4d %6d %4d  %4d %-30s",
                   *dr.m_Domain, dr.m_nType, dr.m_nClass, dr.m_nTTL, dr.m_nLen, dr.m_nValue, *dr.m_Server) ;
           else
               Result.Printf("%-29s %4d  %4d %6d %4d  %4d",
                   *dr.m_Domain, dr.m_nType, dr.m_nClass, dr.m_nTTL, dr.m_nLen, dr.m_nValue) ;
           if (dr.m_Ipa)
               Result.Printf("\t(%s)", *dr.m_Ipa) ;
           Result.AddByte(CHAR_NL) ;
       }
   }
   if (m_arAut.Count())
   {
       Result.Printf("\n;; AUTHORITY SECTION          Type Class    TTL  Len Value Server               Address\n") ;
       for (ir = m_arAut ; ir.Valid() ; ir++)
       {
           dr = ir.Element() ;
           if (dr.m_Server)
               Result.Printf("%-29s %4d  %4d %6d %4d  %4d %-30s",
                   *dr.m_Domain, dr.m_nType, dr.m_nClass, dr.m_nTTL, dr.m_nLen, dr.m_nValue, *dr.m_Server) ;
           else
               Result.Printf("%-29s %4d  %4d %6d %4d  %4d",
                   *dr.m_Domain, dr.m_nType, dr.m_nClass, dr.m_nTTL, dr.m_nLen, dr.m_nValue) ;
           if (dr.m_Ipa)
               Result.Printf("\t(%s)", *dr.m_Ipa) ;
           Result.AddByte(CHAR_NL) ;
       }
   }
   if (m_arAdd.Count())
   {
       Result.Printf("\n;; ADDITIONAL SECTION         Type Class    TTL  Len Value Server               Address\n") ;
       for (ir = m_arAdd ; ir.Valid() ; ir++)
       {
           dr = ir.Element() ;
           if (dr.m_Server)
               Result.Printf("%-29s %4d  %4d %6d %4d  %4d %-30s",
                   *dr.m_Domain, dr.m_nType, dr.m_nClass, dr.m_nTTL, dr.m_nLen, dr.m_nValue, *dr.m_Server) ;
           else
               Result.Printf("%-29s %4d  %4d %6d %4d  %4d",
                   *dr.m_Domain, dr.m_nType, dr.m_nClass, dr.m_nTTL, dr.m_nLen, dr.m_nValue) ;
           if (dr.m_Ipa)
               Result.Printf("\t(%s)", *dr.m_Ipa) ;
           Result.AddByte(CHAR_NL) ;
       }
   }
}