summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2016-07-14 15:49:58 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2016-07-14 15:49:58 -0400
commit436011fee88fb1f8e2941c518e5f7bd11d66559d (patch)
tree394cbb0e3827e1743121dab39df2f75d3b6d8955 /test.sh
parentbe097ac2736a45d58b0e2cb345c950b8921e9503 (diff)
downloadudpastcp-436011fee88fb1f8e2941c518e5f7bd11d66559d.tar.xz
udpastcp-436011fee88fb1f8e2941c518e5f7bd11d66559d.zip
Rewrite args parsing to prepare for libpcap.
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.sh b/test.sh
index a82020a..62f3b93 100755
--- a/test.sh
+++ b/test.sh
@@ -7,9 +7,9 @@ test_bidi() {
(
pids=
trap 'kill $pids' INT TERM EXIT
- $UDPASTCP client "$1" 36563 "$1" 64109 &
+ $UDPASTCP -m client -h "$1" -p 36563 -H "$1" -P 64109 &
pids="$!"
- $UDPASTCP server "$1" 64109 "$1" 41465 &
+ $UDPASTCP -m server -h "$1" -p 64109 -H "$1" -P 41465 &
pids="$pids $!"
( ( sleep 0.5; echo BBBBBBBB; ) | socat "udp-listen:41465,pf=${2}" - ) &
pids="$pids $!"