ALTERNATE SERVER AND MESSAGE PASSING

A PROJECT REPORT Submitted by

P.BALAMURUGAN (30605104012) G.KARTHICK (30605104023)
in partial fulfillment for the award of the degree of

BACHELOR O ENGINEERING
in COMPUTER SCIENCE AND ENGINEERING JEPPIAAR ENGINEERING COLLEGE! CHENNAI " 600 11#

ANNA UNIVERSIT$% CHENNAI 600 025
MA$ 200#

JEPPIAAR ENGINEERING COLLEG DEPARTMENT O COMPUTER SCIENCE AMD ENGINEERING JEPPIAAR NAGAR! OLD MAMALLAPURAM ROAD! CHENNAI&600 11# BONA IDE CERTI ICATE Certified that this project report 'ALTERNATE SERVER AND MESSAGE PASSING ” is the bonafide work of “ P. Submitted for the examination held on…………………… PROJECT GIUDE HEAD O THE DEPARTMENT INTERNAL E)AMINER E)TERNAL E)AMINER .BALAMURUGAN (30605104012) and G.KARTHICK (30605104023)( who carried out the project work under my supervision.

The alternate server is the second client of the main server. The Client is the process that re. .uests service from a remote process known as the Server which sends back the reply to the client. The clients are connected automatically to the alternate server by sendin$ the si$nals. The alternate server assumes that the main server crashes and the alternate server take part of the communication process. The information that is maintained by the main server is updated to the alternate server. *ur focus on the implementation of an +lternate Sever. The updation is carried out by the constant time intervals. To avoid such a crisis we $o for a -ackup)Server which maintains the connection status of the Client and is updated then to then such that the connection may be resume with the +lternate Server actin$ as the 'ain)Server. This can be indicated by sendin$ si$nals.ABSTRACT The !"# operatin$ system trades upon the labels of security and reliability. %hile the best possible security is availed throu$h the &ile 'ana$ement System( trademarks such as the proxy)server and the alternate sever is responsible for its reliability thus makin$ !"# has so far the dominant operatin$ system of the emer$in$ era. The main server $ets detached and the si$nals are also stopped. "n case the Server crashes then there lies a breakdown in the entire system left with the client unable to communicate.

. PAGE NO *** +* +** 1 ./ 3roposed System 0.6 Software 4escription 7 7 7 . *peratin$ System 6. 1xistin$ System 0.0 :ardware 4escription 6./...... 8"! # operatin$ system 6... LITERATURE REVIE. S$STEM ANAL$SIS 0. / 4 5 2 2 5 ../. < < ./ 9ed :at 8inux 2../ !"# environment 6.ARE AND HARD... !"# operatin$ system 6. Server Crashin$ ./ +lternate Server 2.. INTRODUCTION ./ +bout the lan$ua$e 6. 3.= .0 3roblem 4escription 4.. 6.ARE ENVIRONMENT 6.0 :istory of 8"! # 6. SO T.= ..TABLE O CONTENTS CHAPTER NO TITLE ABSTRACT LIST O IGURE LIST O TABLES 1.

6.0./ 4ata &low 4ia$ram 2.2.< /. PROJECT DESCRIPTION 5. TESTING AND IMPLEMENTATION CONCLUSION RE ERENCE APPENDI) .=.2 &ile handlin$ 5.7 ./ ser 4efied structure 5.2 . 0/ 00 06 05 6= 46 4# 50 51 2.7 Client Server 'odel -. &unction sed 5.6. // /2 /5 /7 2../ Connectin$ Stream Sockets 2.. 10. /< 0= 0= 0. 3re 4efined Structure 5. 'ain server 5. 5. -lock 4ia$ram 2. #.6 Structured used 5. S$STEM DESIGN 2.6.0.0 4ata$ram Sockets 2... Socket Creation and !amin$ 2.5 Si$nals 5./ +lternate Server 5. :andlin$ Si$nals 12 .0 Client 5. . /. Codin$ ./ Screen Shots ....0.6 Socket *ptions 2.=.6 Si$nals 2.5..0 Socket pro$rammin$ 2./ .0.6.

6 .../ 2..@bA 2..0../ 2. 2.0 2..0@bA 2..6 TITLE O IGURE PAGE NO IGURE +"T19!+T1 S19>19 +!4 '1SS+?1 3+SS"!? -1&*91 S19>19 C9+S:"!? +T T:1 T"'1 *& S19>19 C9+S:"!? 4+T+&8*% 4"+?9+' &+"8 91 *& T:1 '+"! S19>19 ST+T1 T9+!ST"T"*! *& S19>19 ST91+' S*CB1T ST+T1 T9+!ST"T"*! *& C8"1!T ST91+' S*CB1T ST+T1 T9+!ST"T"*! *& 4+T+?9+' S*CB1T +8T19!+T1 ST+T1 T9+!ST"T"*! *& 4+T+?9+' S*CB1T *S" 8+C19 /6 /2 // /0 /= .0..5 +* .0./.LIST O IG NO 2./ .2 ./. 2.0 ..0.0@aA 2.@aA 2..0.

LIST O TABLES TABLE NO .. TITLE O TABLE '+C9* S"?!+8S :1+419 &"81S 07 PAGE NO +** ..