mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
- Move general config files out of example directory to fairmq/run. - Use FairMQProgOptions for MQ example 5. - Add SendPartAsync() for non-blocking send of a message part.
19 lines
596 B
Bash
Executable File
19 lines
596 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if(@NANOMSG_FOUND@); then
|
|
buffSize="50000000" # nanomsg buffer size is in bytes
|
|
else
|
|
buffSize="1000" # zeromq high-water mark is in messages
|
|
fi
|
|
|
|
SAMPLER="binsampler"
|
|
SAMPLER+=" --id 101"
|
|
SAMPLER+=" --event-size 10000"
|
|
SAMPLER+=" --output-socket-type push --output-buff-size $buffSize --output-method bind --output-address tcp://*:5565"
|
|
xterm -e @CMAKE_BINARY_DIR@/bin/$SAMPLER &
|
|
|
|
SINK="binsink"
|
|
SINK+=" --id 201"
|
|
SINK+=" --input-socket-type pull --input-buff-size $buffSize --input-method connect --input-address tcp://localhost:5565"
|
|
xterm -e @CMAKE_BINARY_DIR@/bin/$SINK &
|