summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>2011-12-22 11:31:17 +0100
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>2011-12-22 11:31:17 +0100
commitdc1f905a3c787577a3627a1ead607a13460dbb2f (patch)
tree8c89455122888cffb50a7e1436a846d03763ac22 /src
parent[805] Release on broken rollback (diff)
downloadkea-dc1f905a3c787577a3627a1ead607a13460dbb2f.tar.xz
kea-dc1f905a3c787577a3627a1ead607a13460dbb2f.zip
[805] Initialization
Diffstat (limited to 'src')
-rw-r--r--src/bin/auth/main.cc3
-rw-r--r--src/bin/resolver/main.cc3
-rw-r--r--src/lib/server_common/socket_request.cc6
3 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/auth/main.cc b/src/bin/auth/main.cc
index c8f6762aad..143364b947 100644
--- a/src/bin/auth/main.cc
+++ b/src/bin/auth/main.cc
@@ -49,6 +49,7 @@
#include <asiolink/asiolink.h>
#include <log/logger_support.h>
#include <server_common/keyring.h>
+#include <server_common/socket_request.h>
using namespace std;
using namespace isc::asiodns;
@@ -168,6 +169,8 @@ main(int argc, char* argv[]) {
my_config_handler,
my_command_handler, false);
LOG_DEBUG(auth_logger, DBG_AUTH_START, AUTH_CONFIG_CHANNEL_ESTABLISHED);
+ // Initialize the Socket Requestor
+ isc::server_common::SocketRequestor::init(*config_session);
xfrin_session = new Session(io_service.get_io_service());
LOG_DEBUG(auth_logger, DBG_AUTH_START, AUTH_XFRIN_CHANNEL_CREATED);
diff --git a/src/bin/resolver/main.cc b/src/bin/resolver/main.cc
index 79146da928..cfa9a2dab0 100644
--- a/src/bin/resolver/main.cc
+++ b/src/bin/resolver/main.cc
@@ -41,6 +41,8 @@
#include <cc/data.h>
#include <config/ccsession.h>
+#include <server_common/socket_request.h>
+
#include <xfr/xfrout_client.h>
#include <auth/change_user.h>
@@ -209,6 +211,7 @@ main(int argc, char* argv[]) {
config_session = new ModuleCCSession(specfile, *cc_session,
my_config_handler,
my_command_handler);
+ isc::server_common::SocketRequestor::init(*config_session);
LOG_DEBUG(resolver_logger, RESOLVER_DBG_INIT, RESOLVER_CONFIG_CHANNEL);
// FIXME: This does not belong here, but inside Boss
diff --git a/src/lib/server_common/socket_request.cc b/src/lib/server_common/socket_request.cc
index 328816f328..11c2cde874 100644
--- a/src/lib/server_common/socket_request.cc
+++ b/src/lib/server_common/socket_request.cc
@@ -35,5 +35,11 @@ SocketRequestor::initTest(SocketRequestor* new_requestor) {
requestor = new_requestor;
}
+void
+SocketRequestor::init(config::ModuleCCSession&) {
+ isc_throw(NotImplemented,
+ "The socket requestor will be implemented in #1522");
+}
+
}
}