diff options
author | adv <adv@uma.es> | 2018-11-25 22:17:55 +0000 |
---|---|---|
committer | adv <adv@uma.es> | 2018-11-25 22:17:55 +0000 |
commit | 518d4d84f755185f224c82d5cc3f49b350af4b05 (patch) | |
tree | 94a62dcf758f252a72635b755b8d8b6d4431c102 | |
parent | 59d66700b6878cc57b28f12c21bbb43a38f0871f (diff) |
#851 fix check parameteres available in udp-receiver
-rwxr-xr-x | client/engine/Protocol.lib | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/engine/Protocol.lib b/client/engine/Protocol.lib index 2fb45fb4..279961a5 100755 --- a/client/engine/Protocol.lib +++ b/client/engine/Protocol.lib @@ -507,6 +507,9 @@ else #asignamos valor definido en el engine.cfg STARTTIMEOUT=" --start-timeout $MCASTERRORSESSION" fi +#Verificamos que la opcion start-time out esta soportada por la version del cliente +echo $ISUDPCAST | grep start-timeout > /dev/null || STARTTIMEOUT=" " + #La cuarta opcion de la sesion para el cliente: ${SESSION[2]} ERROR TRANSFER - TIMEOUT EEOR IF NOT RECEIVER DATA FROM SERVER if ogCheckStringInReg ${SESSION[3]} "^[0-9]{1,10}$" &>/dev/null then @@ -522,6 +525,9 @@ else #asignamos valor definido en el engine.cfg RECEIVERTIMEOUT=" --receive-timeout $MCASTWAIT" fi +#Verificamos que la opcion receive-timeou esta soportada por la version del cliente +echo $ISUDPCAST | grep receive-timeout > /dev/null || RECEIVERTIMEOUT=" " + #Componenemos la sesion multicast del cliente SYNTAXCLIENT="udp-receiver $MBUFFER --portbase $PORTBASE $SERVERADDRESS $STARTTIMEOUT $RECEIVERTIMEOUT --log /tmp/mcast.log" ########################################################################## |