#!/usr/bin/env ksh
# vim: ts=4 sw=4 noet :
#==================================================================================
-# Copyright (c) 2019-2020 Nokia
-# Copyright (c) 2018-2020 AT&T Intellectual Property.
+# Copyright (c) 2019-2021 Nokia
+# Copyright (c) 2018-2021 AT&T Intellectual Property.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# file in order for the 'main' to pick them up easily.
#
function run_sender {
- ./lcaller${si} ${nmsg:-10} ${delay:-500} ${cthreads:-3}
+ ./lcaller ${nmsg:-10} ${delay:-500} ${cthreads:-3}
echo $? >/tmp/PID$$.src # must communicate state back via file b/c asynch
}
port=$(( 4460 + ${1:-0} ))
export RMR_RTG_SVC=$(( 9990 + $1 ))
- ./lreceiver${si} $(( ((nmsg * cthreads)/nrcvrs) + 10 )) $port
+ ./lreceiver $(( ((nmsg * cthreads)/nrcvrs) + 10 )) $port
echo $? >/tmp/PID$$.$1.rrc
}
#
function set_rt {
typeset port=4460
- typeset groups="localhost:4460"
+ typeset groups="127.0.0.1:4460"
for (( i=1; i < ${1:-3}; i++ ))
do
- groups="$groups,localhost:$((port+i))"
+ groups="$groups,127.0.0.1:$((port+i))"
done
cat <<endKat >lcall.rt
set_rt $nrcvrs # set up the rt for n receivers
-if (( force_make || rebuild )) || [[ ! -f ./lcaller{$si} || ! -f ./lreceiver${si} ]]
+if (( force_make || rebuild )) || [[ ! -f ./lcaller || ! -f ./lreceiver ]]
then
- if ! make -B lcaller${si} lreceiver${si} >/dev/null 2>&1
+ if ! make -B lcaller lreceiver >/dev/null 2>&1
then
- echo "[FAIL] cannot find lcaller${si} and/or lreceiver${si} binary, and cannot make them.... humm?"
+ echo "[FAIL] cannot find lcaller and/or lreceiver binary, and cannot make them.... humm?"
exit 1
fi
fi