19 #ifndef IRCCD_CTL_CONTROLLER_HPP
20 #define IRCCD_CTL_CONTROLLER_HPP
27 #include "sysconfig.hpp"
31 #include <irccd/connector.hpp>
32 #include <irccd/stream.hpp>
65 std::unique_ptr<connector> connector_;
66 std::shared_ptr<stream> stream_;
67 std::string password_;
126 void send(nlohmann::json message,
stream::send_handler handler);
Abstract connection interface.
Definition: connector.hpp:53
Main irccdctl interface.
Definition: controller.hpp:53
controller(std::unique_ptr< connector > connector) noexcept
void recv(stream::recv_handler handler)
std::function< void(std::error_code, nlohmann::json)> connect_handler
Definition: controller.hpp:62
auto get_password() const noexcept -> const std::string &
void connect(connect_handler handler)
void set_password(std::string password) noexcept
void send(nlohmann::json message, stream::send_handler handler)
Abstract stream interface.
Definition: stream.hpp:58
Parent namespace.
Definition: acceptor.hpp:43