Manual

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 3

DownloadManual
Open PDF In BrowserView PDF
Manual for Task # 1
Prerequisite :
1. Installed python version 3.6
2. Install rypc package

Configuring Server:

There is configure file "constRPYC.py". we have properties that is used for
configuring the port number of server It tells the server to run on which port of
machine By default server port is set to 12346. If you want to change the default
port you can open "constRPYC.py". Change the property server port=12346 to
port={yourport}

Running Server

Once you changed the port number of server if needed. You can run server using
this command : python server.py . Then the server will be running

Configuring Peer

There is configure file "constRPYC.py". Inside that file properties that are used to
configuring connection to indeed server.
Those Properties are:
server=127.0.0.1 (default server IP Address)
port=12346(Default Server running port Number)
port1=5001(Default peer1 Port no used for File transfer)
Indexed server address and indexed server port are changed according to the
server running IP address and port no of server. Port1 is changed for each peer,
So make sure that port for each peer is different when running multiple peer

Like for Peer1 our Properties file should be like
Indexed server address=127.0.0.1(server IP Address)
indexed server port=12346(Server running port Number)
port1=5001 (Peer1 local port)
As we can see above that for all the peers connecting to same server IP 127.0.0.1
and port number 12346 i.e running port of server. But port is changing for all
peers as peer1 has 5001 port number , peer2 has 9002 port number and peer3
has 5003 port number. etc up to 6 peers in the source code file

Running Peer
After running your server it will be waiting from any peer to register or download
or search for any files have been registered by peers (which are the facilities of
the indexed server). Peer should run and choose from the menu to register or
download or search

Command line to run any of those peers : python Client1
Now you have the server and the peer running you can run the 6 peers together

If you download any file form any port you will find it in source code file



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : No
Page Count                      : 3
Language                        : en-US
Tagged PDF                      : Yes
Author                          : AhMeD SaIeD
Creator                         : Microsoft® Word 2016
Create Date                     : 2017:12:16 21:31:57+00:00
Producer                        : www.ilovepdf.com
Modify Date                     : 2017:12:16 21:31:57Z
EXIF Metadata provided by EXIF.tools

Navigation menu