example: read in larger chunks of data

Lengthen the poll delay to read in larger chunks of data. With a poll
value of 1 ms, there could be a large protocol message overhead: 1
character per XML stanza.
pull/1/head
Michael Santos 9 years ago
parent 5b7c7a1b64
commit 1a680daa48

@ -58,11 +58,11 @@ session(){
mkfifo $out
nc $2 $3 < $out | xmppipe -P 1 -r session -o $1 -b 1024 -x -s | decode > $out
nc $2 $3 < $out | xmppipe -P 100 -r session -o $1 -x -s | decode > $out
}
client() {
xmppipe -P 1 -r client -o $1 -b 1024 -x -s | decode
xmppipe -P 100 -r client -o $1 -x -s | decode
}
$@

Loading…
Cancel
Save