RECEIVE(3N) — Silicon Graphics
NAME
receive − receive message from a socket
SYNOPSIS
#include <sys/socket.h> cc = receive(s, from, buf, len);
int cc, s;
struct sockaddr *from;
char *buf;
int len;
DESCRIPTION
This call receives messages from a SOCK_DGRAM or SOCK_RAW socket. from is the message’s source address and cc the message length. The message is truncated if it is longer than the supplied receive buffer.
receive waits for a message if one is not available.
SEE ALSO
Version 2.4 — September 29, 2021