![]() |
Kea 2.2.0
|
Implementation of the CommandMgr.
More...
Public Member Functions | |
| CommandMgrImpl () | |
| Constructor. More... | |
| void | doAccept () |
| Asynchronously accepts next connection. More... | |
| std::string | getLockName () |
| Returns the lock file name. More... | |
| void | openCommandSocket (const isc::data::ConstElementPtr &socket_info) |
| Opens acceptor service allowing the control clients to connect. More... | |
Public Attributes | |
| boost::shared_ptr< UnixDomainSocketAcceptor > | acceptor_ |
| Pointer to the acceptor service. More... | |
| ConnectionPool | connection_pool_ |
| Pool of connections. More... | |
| IOServicePtr | io_service_ |
| Pointer to the IO service used by the server process for running asynchronous tasks. More... | |
| boost::shared_ptr< UnixDomainSocket > | socket_ |
| Pointer to the socket into which the new connection is accepted. More... | |
| std::string | socket_name_ |
| Path to the unix domain socket descriptor. More... | |
| long | timeout_ |
| Connection timeout. More... | |
Implementation of the CommandMgr.
Definition at line 474 of file command_mgr.cc.
|
inline |
Constructor.
Definition at line 478 of file command_mgr.cc.
| void isc::config::CommandMgrImpl::doAccept | ( | ) |
Asynchronously accepts next connection.
Definition at line 595 of file command_mgr.cc.
References acceptor_, isc::config::command_logger, isc::config::COMMAND_SOCKET_ACCEPT_FAIL, connection_pool_, doAccept(), io_service_, LOG_ERROR, socket_, and timeout_.
Referenced by doAccept(), and openCommandSocket().
Here is the call graph for this function:
|
inline |
Returns the lock file name.
Definition at line 494 of file command_mgr.cc.
References socket_name_.
Referenced by openCommandSocket().
| void isc::config::CommandMgrImpl::openCommandSocket | ( | const isc::data::ConstElementPtr & | socket_info | ) |
Opens acceptor service allowing the control clients to connect.
| socket_info | Configuration information for the control socket. |
| BadSocketInfo | When socket configuration is invalid. |
| SocketError | When socket operation fails. |
Definition at line 521 of file command_mgr.cc.
References acceptor_, isc::dhcp::IfaceMgr::addExternalSocket(), isc::config::COMMAND_ACCEPTOR_START, isc::config::command_logger, doAccept(), getLockName(), isc::dhcp::IfaceMgr::instance(), io_service_, isc_throw, LOG_INFO, socket_name_, and isc::Exception::what().
Here is the call graph for this function:| boost::shared_ptr<UnixDomainSocketAcceptor> isc::config::CommandMgrImpl::acceptor_ |
Pointer to the acceptor service.
Definition at line 503 of file command_mgr.cc.
Referenced by doAccept(), and openCommandSocket().
| ConnectionPool isc::config::CommandMgrImpl::connection_pool_ |
| IOServicePtr isc::config::CommandMgrImpl::io_service_ |
Pointer to the IO service used by the server process for running asynchronous tasks.
Definition at line 500 of file command_mgr.cc.
Referenced by doAccept(), and openCommandSocket().
| boost::shared_ptr<UnixDomainSocket> isc::config::CommandMgrImpl::socket_ |
Pointer to the socket into which the new connection is accepted.
Definition at line 506 of file command_mgr.cc.
Referenced by doAccept().
| std::string isc::config::CommandMgrImpl::socket_name_ |
Path to the unix domain socket descriptor.
This is used to remove the socket file once the connection terminates.
Definition at line 511 of file command_mgr.cc.
Referenced by getLockName(), and openCommandSocket().
| long isc::config::CommandMgrImpl::timeout_ |