Server-CLI Entcommuni Cati ON
Server-CLI Entcommuni Cati ON
CLI
ENTCOMMUNI
CATI
ON
I
NTRODUCTI
ON
Servercommunicati
oninvol
vestwocomponents, namelyacli
entandaser
ver.Theyar
e
usuall
ymultipl
ecl
ient
sincommuni cat
ionwit
hasi ngleserv
er.Thecli
ent
ssendrequest
stot
he
serv
erandt heser
verrespondstothecli
entr
equests.
Ther
ear
ethr
eemai
nmet
hodst
ocl
i
ent
/ser
vercommuni
cat
ion.Thesear
egi
venasf
oll
ows:
Socket
s
Socketsfaci
l
itat
ecommuni cat
ionbetweentwoprocessesonthesamemachineordiff
erent
machines.Theyareusedinaclient
/ser
verf
rameworkandconsistoft
heIPaddressandport
number.Manyappl i
cat
ionprot
ocolsusesocket
sfordataconnect
ionanddat
atransf
erbetween
acli
entandaser ver
.
Socketcommuni cati
onisqui
telow-
lev
elassocket
sonlytr
ansferanunst
ruct
uredby
testr
eam
acrossprocesses.Thestr
uct
ureonthebyt
estream i
simposedbythecli
entandser
ver
appli
cat
ions.
Adi
agr
am t
hati
l
lust
rat
essocket
sisasf
oll
ows:
Socket
s
Remot
ePr
ocedur
eCal
l
s
Theseareinter
processcommunicat
iontechni
quest
hatar
eusedforcl
i
ent-ser
verbased
appl
icat
ions.Aremot epr
ocedur
ecalli
salsoknownasasubr
outi
necallorafunct
ioncal
l.
Aclienthasarequestthatt
heRPCtransl
atesandsendstotheserver
.Thi
srequestmaybea
procedureorafuncti
oncallt
oaremoteserver
.Whent heser
verrecei
vest
herequest
,itsends
therequir
edresponsebacktothecl
i
ent.
Adi
agr
am t
hati
l
lust
rat
esr
emot
epr
ocedur
ecal
l
sisgi
venasf
oll
ows:
Pi
pes
Thesear
eint
erpr
ocesscommunicati
onmethodsthatcont
aintwoendpoi
nts.Dat
aisenter
ed
fr
om oneendoft
hepipebyaprocessandconsumedf r
om theot
herendbytheotherpr
ocess.
Thet wodiff
erenttypesofpipesareor di
nar
ypi
pesandnamedpipes.Or
dinarypi
pesonlyal
low
onewaycommuni cati
on.Fortwowaycommuni cati
on,t
wopipesar
erequir
ed.Ordi
narypi
pes
haveapar entchi
ldr el
ati
onshipbetweenthepr
ocessesast
hepipescanonlybeaccessedby
processesthatcreatedorinheri
tedthem.
Namedpi pesaremorepower f
ulthanor
dinar
ypipesandall
owtwowaycommunicat
ion.These
pi
pesexistevenaft
ertheprocessesusi
ngthem haveter
minat
ed.Theyneedt
obeexpl
ici
tl
y
del
etedwhennotrequiredanymor e.
I
NTERNETPROGRAMMI
NG
ASSI
GNMENT-
1
SUBMI
TTEDBY:
RakeshM
I
IICSEB
310617104078