2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#3506] Checkpoint: split UnixCommandMgr

This commit is contained in:
Francis Dupont
2024-09-01 20:55:56 +02:00
parent bab40487c4
commit 5743002331
25 changed files with 955 additions and 859 deletions

View File

@@ -10,6 +10,7 @@
#include <cc/command_interpreter.h>
#include <config/command_mgr.h>
#include <config/http_command_mgr.h>
#include <config/unix_command_mgr.h>
#include <database/database_connection.h>
#include <database/dbaccess_parser.h>
#include <database/backend_selector.h>
@@ -340,14 +341,14 @@ void configureCommandChannel() {
// receive the configuration result.
if (!sock_cfg || !current_sock_cfg || sock_changed) {
// Close the existing socket (if any).
CommandMgr::instance().closeCommandSocket();
UnixCommandMgr::instance().closeCommandSocket();
if (sock_cfg) {
// This will create a control socket and install the external
// socket in IfaceMgr. That socket will be monitored when
// Dhcp4Srv::receivePacket() calls IfaceMgr::receive4() and
// callback in CommandMgr will be called, if necessary.
CommandMgr::instance().openCommandSocket(sock_cfg);
UnixCommandMgr::instance().openCommandSocket(sock_cfg);
}
}