mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 18:11:49 +00:00
enable/disable multipart functionnality for sending header if source policy has the proper signature
add comment to sendHeader
This commit is contained in:
committed by
Mohammad Al-Turany
parent
6ce6887212
commit
13d3729fec
@@ -53,7 +53,7 @@ void base_GenericSampler<T,U,K,L>::Run()
|
||||
{
|
||||
for (fCurrentIdx = 0; fCurrentIdx < fNumEvents; fCurrentIdx++)
|
||||
{
|
||||
for (auto& p : fChannels[fOutChanName])
|
||||
for (auto& p : fChannels.at(fOutChanName))
|
||||
{
|
||||
std::unique_ptr<FairMQMessage> msg(fTransportFactory->CreateMessage());
|
||||
serialization_type::SetMessage(msg.get());
|
||||
@@ -88,16 +88,6 @@ void base_GenericSampler<T,U,K,L>::Run()
|
||||
}
|
||||
|
||||
|
||||
template <typename T, typename U, typename K, typename L>
|
||||
void base_GenericSampler<T,U,K,L>::SendHeader(int socketIdx)
|
||||
{
|
||||
|
||||
std::unique_ptr<FairMQMessage> msg(fTransportFactory->CreateMessage());
|
||||
serialization_type::SetMessage(msg.get());
|
||||
fChannels.at(fOutChanName).at(socketIdx).Send(serialization_type::SerializeMsg(source_type::GetOutData()), "snd-more");
|
||||
}
|
||||
|
||||
|
||||
template <typename T, typename U, typename K, typename L>
|
||||
int base_GenericSampler<T,U,K,L>::GetSocketNumber() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user