/root/bitcoin/src/netmessagemaker.h
Line | Count | Source |
1 | | // Copyright (c) 2009-2010 Satoshi Nakamoto |
2 | | // Copyright (c) 2009-2020 The Bitcoin Core developers |
3 | | // Distributed under the MIT software license, see the accompanying |
4 | | // file COPYING or http://www.opensource.org/licenses/mit-license.php. |
5 | | |
6 | | #ifndef BITCOIN_NETMESSAGEMAKER_H |
7 | | #define BITCOIN_NETMESSAGEMAKER_H |
8 | | |
9 | | #include <net.h> |
10 | | #include <serialize.h> |
11 | | |
12 | | namespace NetMsg { |
13 | | template <typename... Args> |
14 | | CSerializedNetMsg Make(std::string msg_type, Args&&... args) |
15 | 0 | { |
16 | 0 | CSerializedNetMsg msg; |
17 | 0 | msg.m_type = std::move(msg_type); |
18 | 0 | VectorWriter{msg.data, 0, std::forward<Args>(args)...}; |
19 | 0 | return msg; |
20 | 0 | } Unexecuted instantiation: _ZN6NetMsg4MakeIJ13ParamsWrapperI20TransactionSerParamsSt6vectorI6CBlockSaIS4_EEEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJ13ParamsWrapperI20TransactionSerParams25CBlockHeaderAndShortTxIDsEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJ13ParamsWrapperI20TransactionSerParams6CBlockEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJSt4spanISt4byteLm18446744073709551615EEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRi7WrapperI19CustomUintFormatterILi8ELb0EER12ServiceFlagsEll13ParamsWrapperIN8CNetAddr9SerParamsE8CServiceElSC_mNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiRbEEE17CSerializedNetMsgSI_DpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJbRKmEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRK25CBlockHeaderAndShortTxIDsEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRSt6vectorI4CInvSaIS2_EEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRKiRmRKlS3_13ParamsWrapperIN8CNetAddr9SerParamsE8CServiceES3_SA_S3_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES2_RKbEEE17CSerializedNetMsgSG_DpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRKjRKmEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRKSt5arrayISt4byteLm168EEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRK13CBlockLocator7uint256EEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJ13ParamsWrapperI20TransactionSerParamsK12CTransactionEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJ13ParamsWrapperI20TransactionSerParamsK6CBlockEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJR12CMerkleBlockEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJR25CBlockHeaderAndShortTxIDsEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJR17BlockTransactionsEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJSt6vectorI12CBlockHeaderSaIS2_EEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJR24BlockTransactionsRequestEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRmEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRK11BlockFilterEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRh7uint256RS2_RSt6vectorIS2_SaIS2_EEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRh7uint256RSt6vectorIS2_SaIS2_EEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJ13ParamsWrapperIN8CAddress9SerParamsESt6vectorIS2_SaIS2_EEEEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ Unexecuted instantiation: _ZN6NetMsg4MakeIJRlEEE17CSerializedNetMsgNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpOT_ |
21 | | } // namespace NetMsg |
22 | | |
23 | | #endif // BITCOIN_NETMESSAGEMAKER_H |