Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

socket() Open communication

endpoint

Register well-known
bind()
address with system

Establish client's connection;


listen()
request queue size

Accept first client connection


accept()
request on the queue

blocks until
connection Open communication
from client socket() endpoint

connection
accept() creates
establishment Set up connection
a new socket to connect()
to server
server the new
client request

data (request)
receive() send() Send/receive data

process
request

data (reply)
send() receive() Send/receive data

close() close() Shutdown

Figure 4.13 Socket System Calls for Connection-Oriented Protocol

You might also like