aboutsummaryrefslogtreecommitdiff
path: root/tests/udpsink.sh
blob: 0966b85e92196585865ec6eb2b8ce69cd92a3952 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

P=$1
PORT=$((P))
if [ ${PORT} -lt 1 ]; then
  echo "usage: $0 <port>" 1>&2
  exit 1
fi

nc -u -l -p ${PORT} > /dev/null