Algorithm of creating a client socket of type
SOCK_STREAM
Call socket() on clnt PCO with the following parameters:
domain
,SOCK_STREAM
,proto
. Created socket is referred asclnt_s
below.If
clnt_addr
is not equal toNULL
, bind()clnt_s
socket toclnt_addr
address.