Kea 2.6.2
hooked_command_mgr.h
Go to the documentation of this file.
1// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef HOOKED_COMMAND_MGR_H
8#define HOOKED_COMMAND_MGR_H
9
10#include <cc/data.h>
12
13namespace isc {
14namespace config {
15
40public:
41
46
47protected:
48
64 bool
65 delegateCommandToHookLibrary(const std::string& cmd_name,
66 const isc::data::ConstElementPtr& params,
67 const isc::data::ConstElementPtr& original_cmd,
69
82 handleCommand(const std::string& cmd_name,
83 const isc::data::ConstElementPtr& params,
84 const isc::data::ConstElementPtr& original_cmd);
85
86};
87
88} // end of namespace isc::config
89} // end of namespace isc
90
91#endif
it forwards queries to a single upstream resolver and passes the answers back to the client It is constructed with the address of the forward server Queries are initiated with the question to ask the forward a buffer into which to write the answer
Definition asiodns.dox:60
virtual isc::data::ConstElementPtr handleCommand(const std::string &cmd_name, const isc::data::ConstElementPtr &params, const isc::data::ConstElementPtr &original_cmd)
Handles the command having a given name and arguments.
bool delegateCommandToHookLibrary(const std::string &cmd_name, const isc::data::ConstElementPtr &params, const isc::data::ConstElementPtr &original_cmd, isc::data::ElementPtr &answer)
Handles the command within the hooks libraries.
boost::shared_ptr< const Element > ConstElementPtr
Definition data.h:29
boost::shared_ptr< Element > ElementPtr
Definition data.h:28
Defines the logger used by the top-level component of kea-lfc.