7 #ifndef CLIENT_CONNECTION_H
8 #define CLIENT_CONNECTION_H
12 #include <boost/shared_ptr.hpp>
18 class ClientConnectionImpl;
105 typedef std::function<void(
const boost::system::error_code& ec,
149 boost::shared_ptr<ClientConnectionImpl> impl_;
159 #endif // CLIENT_CONNECTION_H
std::string control_command_
Timeout(const long timeout)
boost::shared_ptr< ClientConnection > ClientConnectionPtr
Type of the pointer to the ClientConnection object.
Represents client side connection over the unix domain socket.
The IOService class is a wrapper for the ASIO io_service class.
SocketPath(const std::string &socket_path)
Defines the logger used by the top-level component of kea-dhcp-ddns.
boost::shared_ptr< const JSONFeed > ConstJSONFeedPtr
Pointer to the const JSONFeed.
ControlCommand(const std::string control_command)
ClientConnection(asiolink::IOService &io_service)
Constructor.
Encapsulates socket path.
Encapsulates timeout value.
void start(const SocketPath &socket_path, const ControlCommand &command, Handler handler, const Timeout &timeout=Timeout(5000))
Starts asynchronous transaction with a remote endpoint.
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...
Encapsulates control command.