nameserver.hh packetcache.hh packethandler.hh qtype.hh statbag.hh \
ueberbackend.hh pdns.conf-dist \
ws-auth.hh ws-auth.cc ws-api.cc ws-api.hh webserver.cc webserver.hh \
-session.cc session.hh misc.cc misc.hh receiver.cc ueberbackend.cc \
+misc.cc misc.hh receiver.cc ueberbackend.cc \
dynlistener.cc dynlistener.hh dynhandler.cc dynhandler.hh \
resolver.hh resolver.cc slavecommunicator.cc mastercommunicator.cc communicator.cc communicator.hh dnsproxy.cc \
dnsproxy.hh unix_utility.cc common_startup.cc \
lua-pdns.cc lua-pdns.hh lua-recursor.cc lua-recursor.hh randomhelper.cc \
recpacketcache.cc recpacketcache.hh dns.cc nsecrecords.cc base32.cc cachecleaner.hh \
ws-recursor.cc ws-recursor.hh ws-api.cc ws-api.hh webserver.cc webserver.hh \
-session.cc session.hh json.cc json.hh version.hh version.cc responsestats.cc
+json.cc json.hh version.hh version.cc responsestats.cc
pdns_recursor_LDFLAGS= $(LUA_LIBS)
pdns_recursor_LDADD= $(POLARSSL_LIBS) $(YAHTTP_LIBS)
#include "logger.hh"
#include "dns.hh"
#include "arguments.hh"
-#include "session.hh"
#include "packetcache.hh"
#include <boost/lexical_cast.hpp>
dns_random.hh lua-pdns.hh lua-recursor.hh namespaces.hh \
recpacketcache.hh base32.hh cachecleaner.hh json.hh version.hh \
ws-recursor.hh ws-api.hh \
-responsestats.hh webserver.hh session.hh"
+responsestats.hh webserver.hh"
CFILES="syncres.cc misc.cc unix_utility.cc qtype.cc \
logger.cc arguments.cc lwres.cc pdns_recursor.cc \
sillyrecords.cc lua-pdns.cc lua-recursor.cc randomhelper.cc \
devpollmplexer.cc recpacketcache.cc dns.cc reczones.cc base32.cc nsecrecords.cc \
dnslabeltext.cc json.cc ws-recursor.cc ws-api.cc version.cc dns_random.cc \
-responsestats.cc webserver.cc session.cc"
+responsestats.cc webserver.cc"
cd docs
make pdns_recursor.1 rec_control.1
#include "logger.hh"
#include "dns.hh"
#include "arguments.hh"
-#include "session.hh"
#include "packetcache.hh"
#include <boost/lexical_cast.hpp>
+++ /dev/null
-/*
- PowerDNS Versatile Database Driven Nameserver
- Copyright (C) 2002 - 2014 PowerDNS.COM BV
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License version 2
- as published by the Free Software Foundation
-
- Additionally, the license of this program contains a special
- exception which allows to distribute the program in binary form when
- it is linked against OpenSSL.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-#include "utility.hh"
-#include "session.hh"
-#include "pdnsexception.hh"
-#include "misc.hh"
-#include <cstring>
-#include <iostream>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <sstream>
-#include "misc.hh"
-#include "iputils.hh"
-
-Socket* Server::accept()
-{
- return d_server_socket.accept();
-}
+++ /dev/null
-/*
- PowerDNS Versatile Database Driven Nameserver
- Copyright (C) 2002 - 2014 PowerDNS.COM BV
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License version 2
- as published by the Free Software Foundation
-
- Additionally, the license of this program contains a special
- exception which allows to distribute the program in binary form when
- it is linked against OpenSSL.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-#ifndef SESSION_HH
-#define SESSION_HH
-
-#include <string>
-#include <cerrno>
-
-#include <sys/stat.h>
-#include <netdb.h>
-#include <unistd.h>
-#include <sys/time.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-#include <sys/types.h>
-#include <strings.h>
-
-#include "sstuff.hh"
-#include "iputils.hh"
-#include "mplexer.hh"
-#include "syncres.hh"
-
-
-//! The server class can be used to create listening servers
-class Server
-{
-public:
- Server(const string &localaddress, int port) : d_local(localaddress.empty() ? "0.0.0.0" : localaddress, port), d_server_socket(InterNetwork, Stream, 0) {
- d_server_socket.setReuseAddr();
- d_server_socket.bind(d_local);
- d_server_socket.listen();
- }
-
- ComboAddress d_local;
-
- Socket *accept(); //!< Call accept() in an endless loop to accept new connections
-
-protected:
- Socket d_server_socket;
-};
-
-#endif /* SESSION_HH */
#include "logger.hh"
#include "dns.hh"
#include "arguments.hh"
-#include "session.hh"
#include "packetcache.hh"
#include <boost/foreach.hpp>
#include <boost/lexical_cast.hpp>
*/
#include "utility.hh"
#include "webserver.hh"
-#include "session.hh"
#include "misc.hh"
#include <vector>
#include "logger.hh"
#include "rapidjson/writer.h"
#include "namespaces.hh"
#include "sstuff.hh"
-#include "session.hh"
class HttpRequest : public YaHTTP::Request {
public:
}
};
+class Server
+{
+public:
+ Server(const string &localaddress, int port) : d_local(localaddress.empty() ? "0.0.0.0" : localaddress, port), d_server_socket(InterNetwork, Stream, 0) {
+ d_server_socket.setReuseAddr();
+ d_server_socket.bind(d_local);
+ d_server_socket.listen();
+ }
+
+ ComboAddress d_local;
+
+ Socket *accept() {
+ return d_server_socket.accept();
+ }
+
+protected:
+ Socket d_server_socket;
+};
+
class WebServer : public boost::noncopyable
{
public:
#include <boost/utility.hpp>
#include "namespaces.hh"
#include "mplexer.hh"
-#include "session.hh"
#include "webserver.hh"
class HttpRequest;