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:
parent
6db3c55f74
commit
fe5614387e
2 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,7 @@ struct listener
|
||||||
|
|
||||||
public:
|
public:
|
||||||
listener(const json::object &options);
|
listener(const json::object &options);
|
||||||
|
listener(const std::string &options);
|
||||||
~listener() noexcept;
|
~listener() noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,11 @@ struct listener::acceptor
|
||||||
// ircd::listener
|
// ircd::listener
|
||||||
//
|
//
|
||||||
|
|
||||||
|
ircd::listener::listener(const std::string &opts)
|
||||||
|
:listener{json::object{opts}}
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
ircd::listener::listener(const json::object &opts)
|
ircd::listener::listener(const json::object &opts)
|
||||||
:acceptor{std::make_unique<struct acceptor>(opts)}
|
:acceptor{std::make_unique<struct acceptor>(opts)}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue