+comp=6
+if [ ! -z "$compression" ]; then
+ comp=$compression
+ for cpair in "$compconn"; do
+ ch=`echo $cpair | cut -d ':' -f 1`
+ if [[ "$remote" == "$ch"* ]]; then
+ cl=`echo $cpair | cut -d ':' -f 2`
+ [[ "$cl" == [0-9] ]] && comp=$cl
+ fi
+ done
+fi
+rcomp="-z --compress-level $comp"
+log using compression level $comp ...
+
+bw=0
+if [ ! -z "$bandwidth" ]; then
+ bw=$bandwidth
+ for bwpair in "$bwconn"; do
+ ch=`echo $bwpair | cut -d ':' -f 1`
+ if [[ "$remote" == "$ch"* ]]; then
+ bwl=`echo $cpair | cut -d ':' -f 2`
+ [ ! -z "$bwl" ]] && bw=$bwl
+ fi
+ done
+fi
+rbw="--bandwidth=$bw"
+log applying bandwidth of $bw ...
+