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