Reception of invalid packets is handled, as well as data pkts and EOB
pkts that should not be received.
At the Server, the size of a block is computed at the end of the first
block, and all arrays that depends on it are resized adaptively during
the reception of the first block.
Added statistics for performance analysis at the server, and restored
the old stopwatch at the client that was commented out.