Updated client so that it can differ between different states.
Depending on the state the correct decision parameters are sent. If
state is sending the size of the remaining file is set as decision
parameter. If state is receiving the size of the remaining packets to
receive is set as decision parameter.