getRecvByte changed to int