Commit 6e89231d authored by Dominik Charousset's avatar Dominik Charousset

Make multiplexer accessible through self pointer

parent 1e003f1e
...@@ -257,6 +257,9 @@ public: ...@@ -257,6 +257,9 @@ public:
/// Returns all handles of all `scribe` instances attached to this broker. /// Returns all handles of all `scribe` instances attached to this broker.
std::vector<connection_handle> connections() const; std::vector<connection_handle> connections() const;
/// Returns the `multiplexer` running this broker.
network::multiplexer& backend();
protected: protected:
void init_broker(); void init_broker();
...@@ -287,9 +290,6 @@ protected: ...@@ -287,9 +290,6 @@ protected:
/// @endcond /// @endcond
/// Returns the `multiplexer` running this broker.
network::multiplexer& backend();
/// Returns a `scribe` or `doorman` identified by `hdl`. /// Returns a `scribe` or `doorman` identified by `hdl`.
template <class Handle> template <class Handle>
auto by_id(Handle hdl) -> optional<decltype(*ptr_of(hdl))> { auto by_id(Handle hdl) -> optional<decltype(*ptr_of(hdl))> {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment