The return values for the "*_n()" methods match the return values from the non "_n()" methods and are specified as follows:
*- On complete transfer, the number of bytes transferred is returned.
* - On timeout, -1 is returned, errno == ETIME.
* - On error, -1 is returned, errno is set to appropriate error.
* - On EOF, 0 is returned, errno is irrelevant.
No comments:
Post a Comment