6.5.2.3 Return Code

Return Code: Returning the length of the received buffer denotes success. Returning -1 denotes failure.