 |
Belle II Software
release-05-01-25
|
12 #include <framework/pcore/zmq/connections/ZMQConnection.h>
13 #include <framework/pcore/zmq/utils/ZMQParent.h>
43 class ZMQRawInput :
public ZMQConnectionOverSocket {
46 ZMQRawInput(
const std::string& inputAddress,
unsigned int maximalBufferSize,
bool receiveEventMessages,
47 const std::shared_ptr<ZMQParent>& parent);
92 ZMQRawOutput(
const std::string& outputAddress,
bool addEventSize,
const std::shared_ptr<ZMQParent>& parent);
std::string m_dataIdentity
Internal storage of the connected identity to no have multiple connections.
void handleIncomingData()
Handle incoming data: a socket (dis)connect.
bool m_addEventSize
Parameter to add the event size to a message.
Abstract base class for different kinds of events.
virtual void handleEvent(zmq::message_t message)
Pass on the message - maybe by prefixing it with a htonl-converted data size in bytes.
bool isReady() const final
If no socket is connected, this connection is not ready.
Specialized connection over a ZMQ socket.
Output connection to speak to non-zmq sockets via a ZMQ_STREAM socket.
ZMQRawOutput(const std::string &outputAddress, bool addEventSize, const std::shared_ptr< ZMQParent > &parent)
Create a new raw output connection. The bind or connect behavior is chosen according to the given add...