using std::ostream;
using std::min; // these are a bit scary, everybody uses 'min'
using std::max;
-
-namespace pdns {
- typedef std::string string;
-};
-
-typedef pdns::string string;
+using std::string;
using boost::lexical_cast;
using boost::tie;
return 0;
}
-ChunkedSigningPipe::ChunkedSigningPipe(const std::string& signerName, bool mustSign, const pdns::string& servers, unsigned int workers)
+ChunkedSigningPipe::ChunkedSigningPipe(const string& signerName, bool mustSign, const string& servers, unsigned int workers)
: d_queued(0), d_outstanding(0), d_signer(signerName), d_maxchunkrecords(100), d_numworkers(workers), d_tids(d_numworkers),
d_mustSign(mustSign), d_final(false), d_submitted(0)
{
#include <stdio.h>
#include "dnsseckeeper.hh"
#include "dns.hh"
-using std::string;
using std::vector;
-void writeLStringToSocket(int fd, const pdns::string& msg);
+void writeLStringToSocket(int fd, const string& msg);
bool readLStringFromSocket(int fd, string& msg);
/** input: DNSResourceRecords ordered in qname,qtype (we emit a signature chunk on a break)
typedef vector<DNSResourceRecord> rrset_t;
typedef rrset_t chunk_t; // for now
- ChunkedSigningPipe(const std::string& signerName, bool mustSign, const pdns::string& servers=pdns::string(), unsigned int numWorkers=3);
+ ChunkedSigningPipe(const string& signerName, bool mustSign, const string& servers=string(), unsigned int numWorkers=3);
~ChunkedSigningPipe();
bool submit(const DNSResourceRecord& rr);
chunk_t getChunk(bool final=false);