7#ifndef CLIENT_CONNECTION_H
8#define CLIENT_CONNECTION_H
12#include <boost/shared_ptr.hpp>
18class ClientConnectionImpl;
105 typedef std::function<void(
const boost::system::error_code& ec,
149 boost::shared_ptr<ClientConnectionImpl> impl_;
Represents client side connection over the unix domain socket.
std::function< void(const boost::system::error_code &ec, const ConstJSONFeedPtr &feed) Handler)
Type of the callback invoked when the communication with the server is complete or an error has occur...
ClientConnection(const asiolink::IOServicePtr &io_service)
Constructor.
void start(const SocketPath &socket_path, const ControlCommand &command, Handler handler, const Timeout &timeout=Timeout(5000))
Starts asynchronous transaction with a remote endpoint.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
boost::shared_ptr< const JSONFeed > ConstJSONFeedPtr
Pointer to the const JSONFeed.
boost::shared_ptr< ClientConnection > ClientConnectionPtr
Type of the pointer to the ClientConnection object.
Defines the logger used by the top-level component of kea-lfc.
Encapsulates control command.
ControlCommand(const std::string control_command)
std::string control_command_
Encapsulates socket path.
SocketPath(const std::string &socket_path)
Encapsulates timeout value.
Timeout(const long timeout)