BSD Sockets Interface Programmer's Guide
Chapter 7 149
Using UNIX Domain Datagram Sockets
Overview
Table 7-1 Exchanging Data Between UNIX Domain Datagram Sockets
Each of these steps or activities is described in more detail in the
following sections. The description of each activity specifies a system and
includes:
• What happens when the system call is used.
• When to make the call.
• What the parameters do.
• Where to find details on the system call.
The domain datagram sockets programming examples are at the end of
these descriptive sections. You can refer to the example code as you work
through the descriptions.
Client
Process
Activity
System
Call Used
Server Process
Activity
System Call
Used
create a socket socket() create a socket socket()
bind a socket bind() bind a socket bind()
send message sendto()
or
sendmsg()
receive message recvfrom()
or recvmsg()
send message sendto() or
sendmsg()
receive
message
recvfrom()
or
recvmsg()