Advertisement
Guest User

restbackend.cc

a guest
Jan 31st, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.11 KB | None | 0 0
  1. #include <string>
  2. #include <map>
  3. #include <unistd.h>
  4. #include <stdlib.h>
  5. #include <sstream>
  6.  
  7. #include "pdns/namespaces.hh"
  8.  
  9. #include <pdns/dns.hh>
  10. #include <pdns/dnsbackend.hh>
  11. #include <pdns/dnspacket.hh>
  12. #include <pdns/ueberbackend.hh>
  13. #include <pdns/ahuexception.hh>
  14. #include <pdns/logger.hh>
  15. #include <pdns/arguments.hh>
  16. #include <sys/socket.h>
  17. #include <netinet/in.h>
  18. #include <arpa/inet.h>
  19. #include <boost/lexical_cast.hpp>
  20.  
  21. #include "restbackend.hh"
  22.  
  23. RestBackend::RestBackend(const string &suffix) {
  24.  
  25. }
  26.  
  27. bool RestBackend::list(const string &target, int domain_id) {
  28.     return false;
  29. }
  30.  
  31. void RestBackend::lookup(const QType &type, const string &qdomain, DNSPacket *p, int zoneId) {
  32. }
  33.  
  34. bool RestBackend::get(DNSResourceRecord &rr) {
  35.     return false;
  36. }
  37.  
  38. RestFactory::RestFactory() : BackendFactory("rest") {
  39. }
  40.  
  41. DNSBackend *RestFactory::make(const string &suffix) {
  42.     return new RestBackend(suffix);
  43. }
  44.  
  45. RestLoader::RestLoader() {
  46.     BackendMakers().report(new RestFactory);
  47.  
  48.     L
  49.             << Logger::Info
  50.             << " [RestBackend] This is the restbackend ("__DATE__", "__TIME__") reporting"
  51.             << endl;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement