]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#153, !60] Minor changes after review.
authorTomek Mrugalski <tomasz@isc.org>
Tue, 16 Oct 2018 12:49:56 +0000 (14:49 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 16 Oct 2018 16:34:34 +0000 (12:34 -0400)
src/bin/netconf/control_socket.h
src/bin/netconf/tests/control_socket_unittests.cc
src/lib/cc/command_interpreter.cc
src/lib/cc/command_interpreter.h

index c9ad087655577ca31cfe8a9614ced9aeefe124c4..a075cb73aed0101c15fb422d854333dacbc32aeb 100644 (file)
@@ -27,7 +27,8 @@ public:
 ///
 /// This class is the base class for control socket communication.
 /// Derived classes implement config-get, config-test and config-set
-/// using control sockets of different types.
+/// using control sockets of different types. Those classes are used to
+/// communicate with other Kea daemons.
 class ControlSocketBase {
 public:
 
@@ -53,14 +54,14 @@ public:
         return (socket_cfg_->getType());
     }
 
-    /// @brief Getter which returns the Unix socket name.
+    /// @brief Returns the Unix socket name.
     ///
     /// @return returns the Unix socket name as a std::string.
     const std::string getName() const {
         return (socket_cfg_->getName());
     }
 
-    /// @brief Getter which returns the HTTP server URL.
+    /// @brief Returns the HTTP server URL.
     ///
     /// @return returns the HTTP server URL as an isc::http::Url.
     const isc::http::Url getUrl() const {
index a66b53640f489ebb945c0eb76250bd1a7eb580e3..ba8491496afb96ca6d594513c80c3dbe52d00eb1 100644 (file)
@@ -462,7 +462,7 @@ protected:
     /// @brief Creates HTTP response.
     ///
     /// Build a response with reflected request in a received JSON map.
-    /// When wanted reply with partial JSON.
+    /// It can be told to respond with a partial JSON.
     ///
     /// @param request Pointer to the HTTP request.
     /// @return Pointer to an object representing HTTP response.
index 2d4d89b1e7f3803e74da84c5e84278099eff43fd..742734eb120a63788aba2121c4676aa2d12c17b0 100644 (file)
@@ -26,7 +26,7 @@ const char *CONTROL_COMMAND = "command";
 const char *CONTROL_RESULT = "result";
 const char *CONTROL_TEXT = "text";
 const char *CONTROL_ARGUMENTS = "arguments";
-  const char *CONTROL_SERVICE = "service";
+const char *CONTROL_SERVICE = "service";
 
 // Full version, with status, text and arguments
 ConstElementPtr
index 1c29bdb38447855024e56846e0c5be9410a872b3..8763e75d8b5575bb53e14026caf02834b2add275 100644 (file)
@@ -104,14 +104,14 @@ isc::data::ConstElementPtr parseAnswer(int &status_code,
 /// @return printable string
 std::string answerToText(const isc::data::ConstElementPtr& msg);
 
-/// @brief Creates a standard config/command command message with no
+/// @brief Creates a standard command message with no
 /// argument (of the form { "command": "my_command" })
 ///
 /// @param command The command string
 /// @return The created message
 isc::data::ConstElementPtr createCommand(const std::string& command);
 
-/// @brief Creates a standard config/command command message with the
+/// @brief Creates a standard command message with the
 /// given argument (of the form { "command": "my_command", "arguments": arg }
 ///
 /// @param command The command string