Parameter values returned to the application

BUF
The input buffer to receive the data.
ERRNO
A fullword binary field. If RETCODE is negative, the field contains an error number. See Socket call error return codes for information about ERRNO return codes.
RETCODE
A fullword binary field that returns one of the following values:
Value
Description
0
The socket is closed.
>0
A positive return code indicates the number of bytes copied into the buffer.
-1
Check ERRNO for an error code.