[svn] commit: r247 - /branches/f2f200910/src/bin/host/host.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Oct 30 19:25:54 UTC 2009


Author: jinmei
Date: Fri Oct 30 19:25:54 2009
New Revision: 247

Log:
make it compile

Modified:
    branches/f2f200910/src/bin/host/host.cc

Modified: branches/f2f200910/src/bin/host/host.cc
==============================================================================
--- branches/f2f200910/src/bin/host/host.cc (original)
+++ branches/f2f200910/src/bin/host/host.cc Fri Oct 30 19:25:54 2009
@@ -94,16 +94,14 @@
                       if ((*it)->getType() != RRType::A) {
                           continue;
                       }
-                      vector<Rdata::IN::A> addresses;
-//                      (*it)->getRdatalist<Rdata::IN::A>(addresses);
-//                      for (vector<Rdata::IN::A>::const_iterator ait =
-//
-//                          addresses.begin(); ait != addresses.end(); ++ait) {
-//
-//                          ait->getAddress();  //this should return in_addr&
-//                      }
+                      std::vector<Rdata::RdataPtr>::const_iterator ait;
+                      for (ait = (*it)->getRdatalist().begin();
+                           ait != (*it)->getRdatalist().end();
+                           ++ait) {
+                          // this should be in_addr of the address
+                          static_cast<const Rdata::IN::A&>(**ait).getAddress();
+                      }
                   }
-
             } else {
                 gettimeofday(&after_time, NULL);
 




More information about the bind10-changes mailing list