Overview - HP Rp3440-4 - 9000 - 0 MB RAM Programmer's Manual

Bsd sockets interface programmer’s guide
Hide thumbs Also See for Rp3440-4 - 9000 - 0 MB RAM:
Table of Contents

Advertisement

Using UNIX Domain Stream Sockets

Overview

Overview
UNIX Domain (AF_UNIX) stream sockets provide bidirectional, reliable,
unduplicated flow of data without record boundaries. They offer
significant performance increases when compared with the use of local
internet (AF_INET) sockets, due primarily to lower code execution
overhead. The following table lists the steps involved in creating and
terminating a UNIX Domain BSD Sockets connection using stream
sockets.
Table 6-1
Creating/Terminating BSD Sockets Connections Using UNIX
Domain Stream Sockets
124
Client
System
Process
Call Used
Activity
create a socket
socket()
request a
connect()
connection
send data
write() or
send()
Server Process
Activity
create a socket
bind a socket
address
listen for incoming
connection
requests
accept connection
receive data
System Call
Used
socket()
bind()
listen()
accept()
read() or
recv()
Chapter 6

Advertisement

Table of Contents
loading

Table of Contents