Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ accept(3N) — GL2 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

connect(3N)

socket(3N)

ip(4)

inet(7)

udp(7)

tcp(7)

ACCEPT(3N)  —  Silicon Graphics

NAME

accept - accept a connection on a socket

SYNOPSIS

#include <sys/socket.h> accept(s, from)
int s;
struct sockaddr *from;

DESCRIPTION

This call accepts a connection on socket s.  This call is used with connection-based socket types (SOCK_STREAM).  Upon return, from points to the initiating entity’s address. 

Accept blocks until another process calls connect (with the appropriate address). 

SEE ALSO

connect(3N), socket(3N), ip(4), inet(7), udp(7), tcp(7)

DIAGNOSTICS

Zero is returned if a connection is accepted; 1− is returned if an error occurs.  Some important errors returned to errno are EOPNOTSUPP if the socket is not a type supporting this operation, and EISCONN if the socket is already connected. 

Version 2.3  —  July 04, 1985

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