processRecvBuffer returns the right pointer after having consumed the
entire buffer.