19 #ifndef IRCCD_DAEMON_SERVER_UTIL_HPP
20 #define IRCCD_DAEMON_SERVER_UTIL_HPP
27 #include <irccd/sysconfig.hpp>
30 #include <string_view>
32 #include <boost/asio/io_service.hpp>
53 namespace server_util {
95 std::string_view cchar,
108 const nlohmann::json&
object) -> std::shared_ptr<server>;
127 #endif // !IRCCD_DAEMON_SERVER_UTIL_HPP
kind
Describe which type of message has been received.
Definition: server_util.hpp:68
Pack a message and its type.
Definition: server_util.hpp:64
@ is_command
special command
Definition: server_util.hpp:69
kind type
Definition: server_util.hpp:76
static auto parse(std::string_view message, std::string_view cchar, std::string_view plugin) -> message_type
Abstract plugin.
Definition: plugin.hpp:61
Section that contains one or more options.
Definition: ini.hpp:295
auto from_json(boost::asio::io_service &service, const nlohmann::json &object) -> std::shared_ptr< server >
auto from_config(boost::asio::io_service &service, const ini::section &sc) -> std::shared_ptr< server >
std::string message
Definition: server_util.hpp:81
Parent namespace.
Definition: acceptor.hpp:43
@ is_message
standard message
Definition: server_util.hpp:70