7#ifndef UNIX_CONTROL_CLIENT_H
8#define UNIX_CONTROL_CLIENT_H
50 bool getResponse(std::string& response,
const unsigned int timeout_sec = 0);
Class that acts as a UnixCommandSocket client.
UnixControlClient()
Default constructor.
void disconnectFromServer()
Closes the Control Channel socket.
~UnixControlClient()
Destructor.
int socket_fd_
Retains the fd of the open socket.
bool getResponse(std::string &response, const unsigned int timeout_sec=0)
Reads the response text from the open Control Channel.
int selectCheck(const unsigned int timeout_sec)
Uses select to poll the Control Channel for data waiting.
bool sendCommand(const std::string &command)
Sends the given command across the open Control Channel.
bool connectToServer(const std::string &socket_path)
Connects to a Unix socket at the given path.
Defines the logger used by the top-level component of kea-lfc.