Query: netread
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NETREAD(3) Common Library Functions NETREAD(3)NAMEnetread - receive a message from a socketSYNOPSIS#include "net.h" int netread (int s, char *buf, int nbytes); ssize_t netread_timeout (int s, void *buf, size_t nbytes, int timeout);DESCRIPTIONnetread receives a message from a socket. It overcomes the message fragmentation problem and always waits for all requested bytes to arrive or a timeout/error occurs.RETURN VALUEThis routine returns the number of bytes if the operation was successful, 0 if the connection was closed by the remote end or -1 if the operation failed. In the latter case, serrno is set appropriately.ERRORSEINTR The function was interrupted by a signal. EBADF s is not a valid descriptor. EAGAIN The socket is non-blocking and there is no message available. EFAULT buf is not a valid pointer. EINVAL nbytes is negative or zero. ENOTSOCK s is not a socket. SECONNDROP Connection closed by remote end. SETIMEDOUT Timed out.SEE ALSOrecv(2), neterror(3)AUTHORLCG Grid Deployment TeamLCG$Date: 2005/03/29 09:27:19 $ NETREAD(3)
Related Man Pages |
---|
recv(3xnet) - opensolaris |
preadv(2) - debian |
rfio_fseeko64(3) - debian |
rfio_ftello64(3) - debian |
rfio_lockf64(3) - debian |
Similar Topics in the Unix Linux Community |
---|
Connection Timed out problem - EM64T |
problem with socket reading |
and again, socket() related problem... |