CatapultServer  v0.5.0.1 (Elephant)
BroadcastUtils.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "PacketPayload.h"
25 #include <vector>
26 
27 namespace catapult { namespace ionet {
28 
30  PacketPayload CreateBroadcastPayload(const std::shared_ptr<const model::Block>& pBlock);
31 
33  PacketPayload CreateBroadcastPayload(const std::vector<model::TransactionInfo>& transactionInfos);
34 
36  PacketPayload CreateBroadcastPayload(const std::vector<model::TransactionInfo>& transactionInfos, PacketType packetType);
37 
39  PacketPayload CreateBroadcastPayload(const std::vector<model::DetachedCosignature>& cosignatures);
40 }}
Block.h
BroadcastUtils.h
PacketPayloadFactory.h
catapult::ionet::PacketPayloadBuilder::appendEntity
bool appendEntity(const std::shared_ptr< TEntity > &pEntity)
Appends a single entity (pEntity) to the payload.
Definition: PacketPayloadBuilder.h:45
catapult::ionet::PacketType
PacketType
An enumeration of known packet types.
Definition: PacketType.h:171
catapult::ionet::PacketPayloadBuilder
A packet payload builder for creating payloads composed of heterogeneous data.
Definition: PacketPayloadBuilder.h:29
catapult::ionet::PacketPayloadBuilder::appendValues
bool appendValues(const std::vector< TValue > &values)
Appends fixed size values to the payload.
Definition: PacketPayloadBuilder.h:107
EntityInfo.h
PacketPayload.h
catapult::ionet::CreateBroadcastPayload
PacketPayload CreateBroadcastPayload(const std::shared_ptr< const model::Block > &pBlock)
Creates a payload around pBlock for broadcasting.
Definition: BroadcastUtils.cpp:28
catapult::ionet::PacketPayloadBuilder::build
PacketPayload build()
Builds the packet payload.
Definition: PacketPayloadBuilder.h:141
catapult::ionet::PacketPayload
A packet payload that can be written.
Definition: PacketPayload.h:29
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::ionet::PacketPayloadFactory::FromEntity
static PacketPayload FromEntity(PacketType type, const std::shared_ptr< TEntity > &pEntity)
Creates a packet payload with the specified packet type around a single entity (pEntity).
Definition: PacketPayloadFactory.h:31
BlockUtils.h
Cosignature.h