Encyclopedia > Berkeley sockets

  Article Content

Berkeley sockets

The Berkeley sockets application programming interface is a library[?] for developing applications in the C programming language that access a computer network.

Table of contents

The client side

socket()

gethostbyname() and gethostbyaddr()

connect()

The server side

socket()

bind()

listen()

accept()

accept() is used to to satisfy a connection request from a remote host. A specified socket on the local host (which must be capable of accepting the connection) is connected to the requesting socket on the remote host. The remote socket's socket address is returned.

See also:

  • Unix Manual Pages: (http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?Unix+manual+pages) accept(2) (http://www.medsch.wisc.edu/cgi-bin/pdm/man.pl?command=accept(2)) connect(2) (http://www.medsch.wisc.edu/cgi-bin/pdm/man.pl?command=connect(2))

This article was originally based on material from FOLDOC, used with permission. Update as needed.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Canadian Music Hall of Fame

... 1992 Ian and Sylvia[?] 1993 Anne Murray 1994 Rush 1995 Buffy Sainte-Marie[?] 1996 David Clayton-Thomas[?] 1996 Denny Doherty[?] 1996 John Kay[?] 1996 ...

 
 
 
This page was created in 23 ms