]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[805] Initialization
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 22 Dec 2011 10:31:17 +0000 (11:31 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 22 Dec 2011 10:31:17 +0000 (11:31 +0100)
src/bin/auth/main.cc
src/bin/resolver/main.cc
src/lib/server_common/socket_request.cc

index c8f6762aadfce954803d6aa8635f7a08430abf2d..143364b947c754a7589f6a589562f135c5af398b 100644 (file)
@@ -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);
index 79146da9284780c63d10f296212f931d08231804..cfa9a2dab0d1b4f7657c8d6dbfc5a88f345bca73 100644 (file)
@@ -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
index 328816f3283d1fd916667da6e0a28f6367e4f24f..11c2cde8741420382ba95f13dc8c16dbaf3cc7f3 100644 (file)
@@ -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");
+}
+
 }
 }