mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Update device configuration
- 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.
This commit is contained in:
18
fairmq/prototest/startBin.sh.in
Executable file
18
fairmq/prototest/startBin.sh.in
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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 &
|
18
fairmq/prototest/startProto.sh.in
Executable file
18
fairmq/prototest/startProto.sh.in
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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="protosampler"
|
||||
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="protosink"
|
||||
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 &
|
Reference in New Issue
Block a user