7 FILE=/root/Dropbox/school/p2pkp/test/client/test_file
17 echo 2 | update-alternatives --config nc &> /dev/null
21 #increase tests debugging
24 # insert module, causing the message to be sent
25 insmod $MODULE_DIR/$MODULE_NAME.ko
27 # listen for UDP packets on localhost, port 60000 (run in background)
28 for port in "${LISTENERS_PORTS[@]}"; do
29 $SERVER $IP $port testfile.$port &
31 ARGUMENTS="$IP $port $ARGUMENTS"
34 # wait for netcat to start listening
37 $CLIENT $FILE $ARGUMENTS
41 wait $pid &> /dev/null