Running Head: IMPLEMENTING THE LIST AND SEARCH FEATURES IN THE DISTRIBUTED LIBRARY APPLICATION IMPLEMENTING THE LIST AND SEARCH FEATURES IN THE DISTRIBUTED LIBRARY APPLICATION 11 Implementing the List and Search Features In the Distributed Library Application Name of Student Name of Institution Date of submission Implementing the List and Search Features In the Distributed Library Application Abstract In the world of programming, Perl and C are the common set of computer programs used to execute computer commands. Perl scripts are so popular, particularly for programs that manages huge quantities of text like the indexers. Perl scripts are very easy and at times can be very difficult subject to the intended use. A good example is that they can be developed to perform particular tasks like deleting or renaming of files. In the Implementing the List and Search Features in the Distributed Library Application, a client can be used to run distributed library application at the library for the purpose of serving books. Once installed and running, upon waiting for requests from peers concerning books requested for the client, the program writes a sequence of codes that are necessary for performing the required steps The below are the modifications that are vital at the client end; Client script; #!/usr/bin/Perl use IO::Socket::INET; $socket = new IO::Socket::INET ( PeerHost => '122.0.0.1', PeerPort => '30000', Proto => 'tcp', ) or die "Oops : $!\n"; print "Waiting for requests.\n"; #Port number, login ID and password. $serverinfo = <$socket>; print " Port number ,login ID and password: $serverinfo \n"; # Login ID and password information. $clientinfo = "... Ok, this is client speaking ..."; print $socket "$clientdata \n"; $socket->terminate{}; On registration, #!/usr/bin/Perl open {REGISTRATION, "registration"} die "Can't open registration: $!\n"; · while {$line = <login ID, password, and port number(3302)>} [ {$menu, $registration} = split{/ /, $line}; $registration[$menu ] .= $registration. " "; ] Server script; #!/usr/bin/perl use IO::Socket::INET; $socket = new IO::Socket::INET { LocalHost => '122.0.0.1', LocalPort => '30000', Proto => 'tcp', Listen => 10, Reuse => 1 } or die "Oops: $! \n"; print "Server is up and running ... \n"; while {1} [ $clientsocket = $socket->registered{}; print " **** Recent Client Registered **** \n "; # Port number, login ID and password. $serverinfo = "This is server speaking ..."; print $clientsocket "$serverinfo \n"; # Login ID and password information. $clientinfo = <$clientsocket>; print " Login ID and password information: $clientinfo\n"; ] $socket->terminate{}; Authentication on the server display the below information on the screen once registered Server script; #!/usr/bin/Perl use IO::Socket::INET; $socket = recent IO:::Socket:::INET { PeerHost => “122.0.0.1”, PeerPort => “30000”, Proto => “tcp”, } or fa ...