Changeset 516 for trunk/pdns/pdns/dnspbench.cc
- Timestamp:
- 10/10/05 23:30:52 (8 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/dnspbench.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnspbench.cc
r514 r516 5 5 #include "dnsrecords.hh" 6 6 7 8 7 9 int main(int argc, char** argv) 8 10 try 9 11 { 10 12 reportAllTypes(); 13 14 cerr<<"sizeof(optString): "<<sizeof(struct optString)<<endl; 15 16 optString os("hallo!"); 17 18 cerr<<"optString: '"<<(string)os<<"'\n"; 11 19 12 20 vector<uint8_t> packet; … … 24 32 // cerr<<"record: "<<record<<"\n"; 25 33 26 shared_ptr<DNSRecordContent> regen=DNSRecordContent::unserialize( record);34 shared_ptr<DNSRecordContent> regen=DNSRecordContent::unserialize(argv[1], type, record); 27 35 cerr<<"Out: "<<argv[1]<<" IN "<<argv[2]<<" "<<regen->getZoneRepresentation()<<endl; 28 36 }