![]() |
Kea 2.2.0
|
Base class for control socket communication. More...
#include <control_socket.h>
Inheritance diagram for isc::netconf::ControlSocketBase:Public Member Functions | |
| ControlSocketBase (CfgControlSocketPtr ctrl_sock) | |
| Constructor. More... | |
| virtual | ~ControlSocketBase () |
| Destructor (does nothing). More... | |
| virtual data::ConstElementPtr | configGet (const std::string &service)=0 |
| Get configuration. More... | |
| virtual data::ConstElementPtr | configSet (data::ConstElementPtr config, const std::string &service)=0 |
| Set configuration. More... | |
| virtual data::ConstElementPtr | configTest (data::ConstElementPtr config, const std::string &service)=0 |
| Test configuration. 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... | |
Public Attributes | |
| CfgControlSocketPtr | socket_cfg_ |
| The control socket configuration. More... | |
Base class for control socket communication.
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. Those classes are used to communicate with other Kea daemons.
Definition at line 32 of file control_socket.h.
|
inline |
Constructor.
| ctrl_sock | The control socket configuration. |
| ControlSocketError | if ctrl_sock is null. |
Definition at line 39 of file control_socket.h.
References isc_throw.
|
inlinevirtual |
Destructor (does nothing).
Definition at line 47 of file control_socket.h.
|
pure virtual |
Get configuration.
Call config-get over the control socket.
| service | The target service (used by http). |
| ControlSocketError | when a communication error occurs. |
Implemented in isc::netconf::HttpControlSocket, isc::netconf::StdoutControlSocket, and isc::netconf::UnixControlSocket.
|
pure virtual |
Set configuration.
Call config-set over the control socket.
| config | The configuration to set. |
| service | The target service (used by http). |
| ControlSocketError | when a communication error occurs. |
Implemented in isc::netconf::HttpControlSocket, isc::netconf::StdoutControlSocket, and isc::netconf::UnixControlSocket.
|
pure virtual |
Test configuration.
Call config-test over the control socket.
| config | The configuration to test. |
| service | The target service (used by http). |
| ControlSocketError | when a communication error occurs. |
Implemented in isc::netconf::HttpControlSocket, isc::netconf::StdoutControlSocket, and isc::netconf::UnixControlSocket.
|
inline |
Returns the Unix socket name.
Definition at line 60 of file control_socket.h.
References socket_cfg_.
|
inline |
Getter which returns the socket type.
Definition at line 53 of file control_socket.h.
References socket_cfg_.
|
inline |
Returns the HTTP server URL.
Definition at line 67 of file control_socket.h.
References socket_cfg_.
| CfgControlSocketPtr isc::netconf::ControlSocketBase::socket_cfg_ |
The control socket configuration.
Definition at line 103 of file control_socket.h.