Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ receive(3N) — GL1 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

send(3N)

socket(3N)

tcp(7)

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

send(3N), socket(3N), tcp(7)

Version 2.3  —  July 04, 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026