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 automatically through the underlying protocol, the error EMSGSIZE is returned and the message is not transmitted.
Due to the model of communication used by datagram and raw sockets, send cannot 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(7P), inet(7P)
Version 2.4 — September 29, 2021