mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
To use protobuf, run cmake as follows: cmake -DUSE_PROTOBUF=1 .. For this, protobuf library has to be installed on the system. Further changes: Clean up splitter/merger: default are N-to-1-merger and 1-to-N-splitter. Fix bug in nanomsg message deallocation. Setup proper buffer sizes for nanomsg/zeromq via cmake/bash script. chmod +x for start scripts.
43 lines
967 B
C++
43 lines
967 B
C++
/**
|
|
* FairMQTransportFactoryZMQ.cxx
|
|
*
|
|
* @since 2014-01-20
|
|
* @author: A. Rybalchenko
|
|
*/
|
|
|
|
#include "zmq.h"
|
|
|
|
#include "FairMQTransportFactoryZMQ.h"
|
|
|
|
FairMQTransportFactoryZMQ::FairMQTransportFactoryZMQ()
|
|
{
|
|
int major, minor, patch;
|
|
zmq_version (&major, &minor, &patch);
|
|
LOG(INFO) << "Using ZeroMQ library, version: " << major << "." << minor << "." << patch;
|
|
}
|
|
|
|
FairMQMessage* FairMQTransportFactoryZMQ::CreateMessage()
|
|
{
|
|
return new FairMQMessageZMQ();
|
|
}
|
|
|
|
FairMQMessage* FairMQTransportFactoryZMQ::CreateMessage(size_t size)
|
|
{
|
|
return new FairMQMessageZMQ(size);
|
|
}
|
|
|
|
FairMQMessage* FairMQTransportFactoryZMQ::CreateMessage(void* data, size_t size)
|
|
{
|
|
return new FairMQMessageZMQ(data, size);
|
|
}
|
|
|
|
FairMQSocket* FairMQTransportFactoryZMQ::CreateSocket(const string& type, int num)
|
|
{
|
|
return new FairMQSocketZMQ(type, num);
|
|
}
|
|
|
|
FairMQPoller* FairMQTransportFactoryZMQ::CreatePoller(const vector<FairMQSocket*>& inputs)
|
|
{
|
|
return new FairMQPollerZMQ(inputs);
|
|
}
|