diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-11-07 10:09:15 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-11-07 10:34:35 +0100 |
commit | c8c572f8f1ea0a98ee3e7b3343c766ad52848bef (patch) | |
tree | b77c73475bc168a06d44b0642637288f18dc0ee6 /src/streams.h | |
parent | 7b22e5001a3d0c997d2d267fd6fedf5722e256d2 (diff) | |
parent | 902768099cb92b39f5ff509cd91fdd8970759b8a (diff) |
Merge #8708: net: have CConnman handle message sending
9027680 net: handle version push in InitializeNode (Cory Fields)
7588b85 net: construct CNodeStates in place (Cory Fields)
440f1d3 net: remove now-unused ssSend and Fuzz (Cory Fields)
5c2169c drop the optimistic write counter hack (Cory Fields)
ea33268 net: switch all callers to connman for pushing messages (Cory Fields)
3e32cd0 connman is in charge of pushing messages (Cory Fields)
b98c14c serialization: teach serializers variadics (Cory Fields)
Diffstat (limited to 'src/streams.h')
-rw-r--r-- | src/streams.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/streams.h b/src/streams.h index 7132364eb1..fa001c112a 100644 --- a/src/streams.h +++ b/src/streams.h @@ -112,6 +112,13 @@ public: Init(nTypeIn, nVersionIn); } + template <typename... Args> + CDataStream(int nTypeIn, int nVersionIn, Args&&... args) + { + Init(nTypeIn, nVersionIn); + ::SerializeMany(*this, nType, nVersion, std::forward<Args>(args)...); + } + void Init(int nTypeIn, int nVersionIn) { nReadPos = 0; |