HPlogo Berkeley Sockets/iX Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 File System Intrinsics

READ

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

C Interface

        int read (s, buf, len)

        int s;

        char *buf;

        int len;

Description

The read function is similar to the recvcall 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

Feedback to webmaster