* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
-#endif
-#include "utility.hh"
+
#include "lwres.hh"
-#include <iostream>
-#include "dnsrecords.hh"
-#include <cerrno>
-#include "misc.hh"
-#include <algorithm>
-#include <sstream>
-#include <cstring>
-#include <string>
-#include <vector>
-#include "dns.hh"
-#include "qtype.hh"
-#include "pdnsexception.hh"
#include "arguments.hh"
-#include "sstuff.hh"
-#include "syncres.hh"
-#include "dnswriter.hh"
-#include "dnsparser.hh"
-#include "logger.hh"
-#include "dns_random.hh"
-#include <boost/scoped_array.hpp>
-#include <boost/algorithm/string.hpp>
-#include "validate-recursor.hh"
-#include "ednssubnet.hh"
#include "query-local-address.hh"
-#include "tcpiohandler.hh"
-#include "ednsoptions.hh"
#include "ednspadding.hh"
#include "rec-protozero.hh"
-#include "uuid-utils.hh"
+#include "logging.hh"
#include "rec-tcpout.hh"
#include "rec-cookiestore.hh"
+#include "syncres.hh"
+#include "resolve-context.hh"
+#include "remote_logger.hh"
static bool g_cookies = false;
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
+
#include <string>
-#include <vector>
-#include <sys/types.h>
-#include "misc.hh"
-#include "iputils.hh"
-#include <netdb.h>
-#include <unistd.h>
-#include <sys/time.h>
-#include <sys/uio.h>
-#include <fcntl.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include "dnsparser.hh"
-#include <arpa/inet.h>
-#undef res_mkquery
-#include "pdnsexception.hh"
-#include "dns.hh"
-#include "namespaces.hh"
-#include "remote_logger.hh"
-#include "fstrm_logger.hh"
-#include "resolve-context.hh"
-#include "noinitvector.hh"
#include "logger.hh"
#include "logr.hh"
+#include "pdnsexception.hh"
+#include "noinitvector.hh"
+
+class RemoteLoggerInterface;
+class RemoteLogger;
+class FrameStreamLogger;
+struct DNSRecord;
+struct ResolveContext;
// Helper to be defined by main program: queue data and log based on return value of queueData()
void remoteLoggerQueueData(RemoteLoggerInterface&, const std::string&);
#include "recpacketcache.hh"
#include "ratelimitedlog.hh"
#include "protozero-trace.hh"
+#include "remote_logger.hh"
#ifdef NOD_ENABLED
#include "nod.hh"
#include <boost/uuid/uuid.hpp>
#include <boost/optional.hpp>
-#include <functional>
#include "dnsname.hh"
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include <optional>
-#ifdef HAVE_CONFIG_H
-#include <utility>
#include "config.h"
-#endif
+
+#include <optional>
+#include <utility>
#include "arguments.hh"
#include "aggressive_nsec.hh"
#include "rec-taskqueue.hh"
#include "shuffle.hh"
#include "rec-nsspeeds.hh"
+#include "resolve-context.hh"
rec::GlobalCounters g_Counters;
thread_local rec::TCounters t_Counters(g_Counters);