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:
Alexey Rybalchenko
2015-11-11 11:06:11 +01:00
parent 837490cc38
commit 383a220333
7 changed files with 75 additions and 4 deletions

18
fairmq/prototest/startBin.sh.in Executable file
View 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 &

View 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 &