0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 16:30:52 +01:00

ircd::listen: Add string options overload.

This commit is contained in:
Jason Volk 2017-08-16 13:27:22 -06:00
parent 6db3c55f74
commit fe5614387e
2 changed files with 6 additions and 0 deletions

View file

@ -32,6 +32,7 @@ struct listener
public:
listener(const json::object &options);
listener(const std::string &options);
~listener() noexcept;
};

View file

@ -65,6 +65,11 @@ struct listener::acceptor
// ircd::listener
//
ircd::listener::listener(const std::string &opts)
:listener{json::object{opts}}
{
}
ircd::listener::listener(const json::object &opts)
:acceptor{std::make_unique<struct acceptor>(opts)}
{