Kea
1.9.9-git
|
Class for control socket communication over UNIX socket. More...
#include <unix_control_socket.h>
Public Member Functions | |
UnixControlSocket (CfgControlSocketPtr ctrl_sock) | |
Constructor. More... | |
virtual | ~UnixControlSocket () |
Destructor (does nothing). More... | |
virtual data::ConstElementPtr | configGet (const std::string &service) |
Get configuration. More... | |
virtual data::ConstElementPtr | configSet (data::ConstElementPtr config, const std::string &service) |
Set configuration. More... | |
virtual data::ConstElementPtr | configTest (data::ConstElementPtr config, const std::string &service) |
Test configuration. More... | |
Public Member Functions inherited from isc::netconf::ControlSocketBase | |
ControlSocketBase (CfgControlSocketPtr ctrl_sock) | |
Constructor. More... | |
virtual | ~ControlSocketBase () |
Destructor (does nothing). More... | |
const std::string | getName () const |
Returns the Unix socket name. More... | |
CfgControlSocket::Type | getType () const |
Getter which returns the socket type. More... | |
const isc::http::Url | getUrl () const |
Returns the HTTP server URL. More... | |
Additional Inherited Members | |
Public Attributes inherited from isc::netconf::ControlSocketBase | |
CfgControlSocketPtr | socket_cfg_ |
The control socket configuration. More... | |
Class for control socket communication over UNIX socket.
This class is the derived class for control socket communication over UNIX sockets. This class implements config-get, config-test and config-set.
Definition at line 23 of file unix_control_socket.h.
isc::netconf::UnixControlSocket::UnixControlSocket | ( | CfgControlSocketPtr | ctrl_sock | ) |
Constructor.
ctrl_sock | The control socket configuration. |
Definition at line 33 of file unix_control_socket.cc.
|
virtual |
Destructor (does nothing).
Definition at line 37 of file unix_control_socket.cc.
|
virtual |
Get configuration.
Call config-get over the control socket.
service | The target service (ignored). |
ControlSocketError | when a communication error occurs. |
Implements isc::netconf::ControlSocketBase.
Definition at line 41 of file unix_control_socket.cc.
References isc::config::createCommand().
|
virtual |
Set configuration.
Call config-set over the control socket.
config | The configuration to set. |
service | The target service (ignored). |
ControlSocketError | when a communication error occurs. |
Implements isc::netconf::ControlSocketBase.
Definition at line 52 of file unix_control_socket.cc.
References isc::config::createCommand().
|
virtual |
Test configuration.
Call config-test over the control socket.
service | The target service (ignored). |
config | The configuration to test. |
ControlSocketError | when a communication error occurs. |
Implements isc::netconf::ControlSocketBase.
Definition at line 46 of file unix_control_socket.cc.
References isc::config::createCommand().