READ [ Berkeley Sockets/iX Reference Manual ] MPE/iX 5.0 Documentation
Berkeley Sockets/iX Reference Manual
READ
C Interface
int read (s, buf, len)
int s;
char *buf;
int len;
Description
The read function is similar to the recv call except there is no flags
parameter. It behaves the same way as a recv call with flags set to
zero.
For more information about read or any other POSIX function, refer to the
MPE/iX Developer's Kit Reference Manual, Volume 1.
Return Value
If the call is successful, it returns the number of bytes received. If
the call fails, a -1 is returned, and an error code is stored in errno.
A zero is returned if the socket is blocking and the transport connection
to the remote node fails.
See Also
recv
MPE/iX 5.0 Documentation