BSD Sockets Interface Programmer's Guide

Chapter 8 173
Programming Hints
Summary Tables for System and Library Calls
Summary Tables for System and Library
Calls
The following table contains a summary of the BSD Sockets system calls.
Table 8-1 BSD Sockets System Calls
System Call Description
socket Creates a socket, or communication endpoint for the
calling process.
bind Assigns a socket address to the socket specified by
the calling process.
listen Sets up a queue for incoming connection requests.
(Stream sockets only.)
connect For stream sockets, requests and creates a
connection between the remote socket (specified by
address) and the socket (specified by descriptor) of
the calling process. For datagram sockets,
permanently specifies the remote peer socket.
accept Receives a connection between the socket of the
calling process and the socket specified in the
associated connect call. (Stream sockets only.)
send,
sendto,
sendmsg
Sends data from the specified socket.
recv,
recvfrom,
recvmsg
Receives data at the specified socket.
shutdown Disconnects the specified socket.