debian man page for netwrite

Query: netwrite

OS: debian

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

NETWRITE(3)						     Common Library Functions						       NETWRITE(3)

NAME
netwrite - send a message on a socket
SYNOPSIS
#include "net.h" int netwrite (int s, char *buf, int nbytes); ssize_t netwrite_timeout (int s, void *buf, size_t nbytes, int timeout);
DESCRIPTION
netwrite sends a message on a socket.
RETURN VALUE
This 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.
ERRORS
EINTR The function was interrupted by a signal. EBADF s is not a valid descriptor. EAGAIN The socket is non-blocking and there is no space available in the system buffers for the message. 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 ALSO
send(2), neterror(3)
AUTHOR
LCG Grid Deployment Team
LCG
$Date: 2005/03/29 09:27:19 $ NETWRITE(3)
Related Man Pages
rfio_fseek(3) - debian
rfio_ftell(3) - debian
rfio_lseek(3) - debian
rfio_readlink(3) - debian
sendfile(2) - hpux
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
One instance of comparing grep and awk
Find columns in a file based on header and print to new file
How to copy a column of multiple files and paste into new excel file (next to column)?
New UNIX and Linux History Sections