Kagome
Polkadot Runtime Engine in C++17
libp2p_types.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_SCALE_LIBP2P_TYPES_HPP
7 #define KAGOME_CORE_SCALE_LIBP2P_TYPES_HPP
8 
9 #include <libp2p/peer/peer_info.hpp>
10 #include "scale/scale.hpp"
11 
12 namespace scale {
13 
15  public:
17 
19  };
20 
21  ::scale::ScaleEncoderStream &operator<<(
22  ::scale::ScaleEncoderStream &s, const libp2p::peer::PeerInfo &peer_info);
23 
24  ::scale::ScaleDecoderStream &operator>>(::scale::ScaleDecoderStream &s,
25  libp2p::peer::PeerInfo &peer_info);
26 
27 } // namespace scale
28 
29 #endif // KAGOME_CORE_SCALE_LIBP2P_TYPES_HPP
static libp2p::peer::PeerId dummyPeerId()
scale::ScaleEncoderStream & operator<<(scale::ScaleEncoderStream &s, const libp2p::peer::PeerInfo &peer_info)
libp2p::peer::PeerInfo PeerInfo
libp2p::peer::PeerId PeerId
scale::ScaleDecoderStream & operator>>(scale::ScaleDecoderStream &s, libp2p::peer::PeerInfo &peer_info)