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

Overview

Internet TCP stream sockets provide bidirectional, reliable, sequenced
and unduplicated flow of data without record boundaries. The following
table lists the steps involved in creating and terminating a BSD Sockets
connection using stream sockets.
Table 2-1
Creating/Terminating BSD Sockets Connections Using Internet
Stream Sockets
Chapter 2
Client
System
Process
Call Used
Activity
create a socket
socket()
bind a socket
bind()
address
(optional)
request a
connect()
connection
send data
write() or
send()
receive data
read() or
recv()
disconnect
shutdown()
socket
or close()
(optional)
Using Internet Stream Sockets
Server Process
Activity
create a socket
bind a socket
address
listen for incoming
connection
requests
accept connection
receive data
send data
disconnect socket
(optional)
Overview
System Call
Used
socket()
bind()
listen()
accept()
read() or
recv()
write() or
send()
shutdown()
or close()
29

Advertisement

Table of Contents
loading

Table of Contents