Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ recv(hdlc,lapb,llc2) — DECnet WAN Support 3.0A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

socket(2h)

setsockopt(2h)

read(2h)

getsockopt(2h)

send(2h)

write(2h)

close(2h)

recv(hdlc,lapb,llc2)

NAME

recv − Receive data from an HDLC, LAPB, or LLC2 Link

SYNTAX

#include <sys/types.h>
#include <sys/socket.h>

cc = recv (s, buf, buflen, flags)
int cc, s;
char ∗buf;
int buflen, flags;
 

DESCRIPTION

The read() or recv() system calls may be used to receive the data queued at the client’s socket.
 

ARGUMENTS

s Value returned by the socket system call

buf Pointer to buffer into which the data will be placed

buflen Length of the receive buffer

flags Null

RETURN VALUE

If the call succeeds, the number of received characters is returned.  If an error occurs, a value of -1 is returned.  Additional error detail is specified in the external variable errno.

DIAGNOSTICS

[EBADF] The s argument is not a valid socket descriptor

[EFAULT] The buf argument points outside the allocated address space

[EWOULDBLOCK] The socket is marked "non-blocking" and the receive operation would have been blocked. 

SEE ALSO

socket(2h), setsockopt(2h), read(2h), getsockopt(2h), send(2h), write(2h), close(2h). 

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