7#ifndef UNIX_COMMAND_CONFIG_H
8#define UNIX_COMMAND_CONFIG_H
36 return (socket_type_);
43 socket_type_ = socket_type;
50 return (socket_name_);
57 socket_name_ = socket_name;
62 return (std::string(socket_name_ +
".lock"));
73 std::string socket_type_;
78 std::string socket_name_;
94 boost::shared_ptr<isc::asiolink::UnixDomainSocketAcceptor>
acceptor_;
97 boost::shared_ptr<isc::asiolink::UnixDomainSocket>
socket_;
UNIX command config aka UNIX control socket info class.
UnixCommandConfig(isc::data::ConstElementPtr config)
Constructor.
std::string getSocketName() const
Returns socket name.
std::string getSocketType() const
Returns socket type.
std::string getLockName()
Returns the lock file name.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
void setSocketType(const std::string &socket_type)
Sets socket type.
void setSocketName(const std::string &socket_name)
Sets socket name.
~UnixCommandConfig()=default
Virtual destructor.
boost::shared_ptr< UnixSocketInfo > UnixSocketInfoPtr
Pointer to a UnixSocketInfo object.
boost::shared_ptr< UnixCommandConfig > UnixCommandConfigPtr
Pointer to a UnixCommandConfig object.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Element > ElementPtr
Defines the logger used by the top-level component of kea-lfc.
Structure used to store UNIX connection data.
boost::shared_ptr< isc::asiolink::UnixDomainSocketAcceptor > acceptor_
Pointer to the acceptor service.
UnixCommandConfigPtr config_
Pointer to the socket config.
boost::shared_ptr< isc::asiolink::UnixDomainSocket > socket_
Pointer to the socket into which the new connection is accepted.
~UnixSocketInfo()=default
Destructor.
int lock_fd_
File description to lock name file.
UnixSocketInfo()
Constructor.
bool usable_
Flag which indicates if socket can be reused.
Abstract class for configuration Cfg_* classes.
Base class for user context.