netwrite man page

NETWRITE(3) Common Library Functions NETWRITE(3)

netwrite - send a message on a socket

[1m#include "net.h"[0m

[1mint netwrite (int [4m[22ms[24m[1m, char *[4m[22mbuf[24m[1m, int [4m[22mnbytes[24m[1m);[0m

[1mssize_t netwrite_timeout (int [4m[22ms[24m[1m, void *[4m[22mbuf[24m[1m, size_t [4m[22mnbytes[24m[1m, int [4m[22mtime-[0m

[1mnetwrite [22msends a message on a socket.

This routine returns the number of bytes if the operation was success-
ful, 0 if the connection was closed by the remote end or -1 if the
operation failed. In the latter case, [1mserrno [22mis set appropriately.

[1mEINTR [22mThe function was interrupted by a signal.

[1mEBADF [4m[22ms[24m is not a valid descriptor.

[1mEAGAIN [22mThe socket is non-blocking and there is no space available
in the system buffers for the message.

[1mEFAULT [4m[22mbuf[24m is not a valid pointer.

[1mEINVAL [4m[22mnbytes[24m is negative or zero.

[1mENOTSOCK [4m[22ms[24m is not a socket.

[1mSECONNDROP [22mConnection closed by remote end.

[1mSETIMEDOUT [22mTimed out.

[1mSEE ALSO[0m
[1msend(2)[22m, [1mneterror(3)[0m

[1mLCG Grid Deployment [22mTeam

LCG $Date: 2005/03/29 09:27:19 $ NETWRITE(3)