mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 14:22:22 +02:00
Fix address for mock stream
This commit is contained in:
@@ -3,11 +3,13 @@
|
||||
|
||||
#include <zmq.hpp>
|
||||
|
||||
const std::string MOCK_STREAM_ADDRESS("tcp://127.0.0.1:11000");
|
||||
|
||||
void generate_stream(size_t n_messages)
|
||||
{
|
||||
zmq::context_t context(1);
|
||||
zmq::socket_t socket(context, ZMQ_PUSH);
|
||||
socket.bind("tcp://127.0.0.1:11000");
|
||||
socket.bind(MOCK_STREAM_ADDRESS);
|
||||
|
||||
string header = "{\"frame\": 0, \"shape\": [1,16], \"type\": \"uint8\"}";
|
||||
zmq::const_buffer header_msg(header.c_str(), header.length());
|
||||
|
||||
Reference in New Issue
Block a user