Server utilities.
More...
◆ from_config()
auto irccd::daemon::server_util::from_config |
( |
boost::asio::io_service & |
service, |
|
|
const ini::section & |
sc |
|
) |
| -> std::shared_ptr< server > |
Convert a INI section to a server.
- Parameters
-
service | the io service |
sc | the server section |
- Returns
- the server
- Exceptions
-
◆ from_json()
auto irccd::daemon::server_util::from_json |
( |
boost::asio::io_service & |
service, |
|
|
const nlohmann::json & |
object |
|
) |
| -> std::shared_ptr< server > |
Convert a JSON object to a server.
- Parameters
-
service | the io service |
object | the object |
- Returns
- the server
- Exceptions
-