SEND(3N) — Silicon Graphics
NAME
send − send message to a socket
SYNOPSIS
#include <sys/socket.h> send(s, to, msg, len)
int s;
struct sockaddr *to;
char *msg;
int len;
DESCRIPTION
send transmits a message to another socket from a SOCK_DGRAM or SOCK_RAW socket. to is the target address and len is the message-length. If the message is too long to pass atomically through the underlying protocol, then the error EMSGSIZE is returned, and the message is not transmitted.
Due to the model of communication used by DGRAM and RAW sockets, send can not indicate whether a message was received. However, some locally detected errors may be recorded in the external variable errno.
If the transmitting socket does not have enough space to hold a message, send blocks transmission until enough space is available.
SEE ALSO
receive(3N), socket(3N), udp(7), inet(7)
Version 2.3 — July 04, 1985