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 s. From is the message’s source address len is the message-length. The message is truncated to len, if it is longer than the supplied receive-buffer, buf. The function returns the number of characters actually received.
Receive waits for a message if one is not available.
SEE ALSO
Version 2.3 — July 04, 1985