Reads bytes from a file or socket.
#include <prio.h> PRInt32 PR_Read(PRFileDesc *fd, void *buf, PRInt32 amount);
The function has the following parameters:
fd
PRFileDesc
object for the file or socket.buf
amount
buf
(in bytes).One of the following values:
PR_GetError
.The thread invoking PR_Read
blocks until it encounters an end-of-stream indication, some positive number of bytes (but no more than amount
bytes) are read in, or an error occurs.