#!/bin/sh 
# Script to Test the udp_server code.

EXEC=./stacks_tou
DATAFILE=./stacks_tou

TMPOUTPUT=tmpoutput$$
EXPECTEDPERIOD=10

$EXEC 127.0.0.1 4401 127.0.0.1 4032 < $DATAFILE > $TMPOUTPUT 

if diff -s $DATAFILE $TMPOUTPUT
then
	echo "SUCCESS"
else
	echo "FAILURE to accurately transfer DATA"
fi

rm $TMPOUTPUT

