Fixed size calculation in recv function in client examples