17 echo 2 | update-alternatives --config nc &> /dev/null
21 #increase tests debugging
24 # listen for UDP packets on localhost, port 60000 (run in background)
25 for port in "${LISTENERS_PORTS[@]}"; do
26 $SERVER $IP $port testfile.$port &
28 ARGUMENTS="$IP $port $ARGUMENTS"
31 # wait for netcat to start listening
34 $CLIENT $FILE $ARGUMENTS
39 kill -9 $pid &> /dev/null