NETWRITE(3) | Common Library Functions | NETWRITE(3) |
netwrite - send a message on a socket
#include "net.h"
int netwrite (int s, char *buf, int nbytes);
ssize_t netwrite_timeout (int s, void *buf, size_t nbytes, int timeout);
netwrite sends a message on a socket.
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.
LCG Grid Deployment Team
$Date: 2005/03/29 09:27:19 $ | LCG |