Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ receive(3N) — GL2 W2.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

send(3N)

socket(3N)

tcp(7P)

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

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

Version 2.4  —  September 29, 2021

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