We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14bb540 commit 65b3857Copy full SHA for 65b3857
include/bitcoin/network/protocols/protocol_rpc.hpp
@@ -39,9 +39,18 @@ class protocol_rpc
39
protected:
40
inline protocol_rpc(const session::ptr& session,
41
const channel::ptr& channel, const options_t&) NOEXCEPT
42
- : protocol(session, channel)
+ : protocol(session, channel),
43
+ channel_(std::dynamic_pointer_cast<channel_t>(channel))
44
{
45
}
46
+
47
+ DECLARE_SEND()
48
+ DECLARE_SUBSCRIBE_CHANNEL()
49
50
+private:
51
+ // This is mostly thread safe, and used in a thread safe manner.
52
+ // pause/resume/paused/attach not invoked, setters limited to handshake.
53
+ const channel_t::ptr channel_;
54
};
55
56
} // namespace network
0 commit comments