https://github.com/idrsdev/cn_project
python virtual multi Server downloader where a number of virtual servers are created and a file is downloaded simultaneously from all of them. ☆ : pull request is welcomed
https://github.com/idrsdev/cn_project
python tcp-ip
Last synced: 10 months ago
JSON representation
python virtual multi Server downloader where a number of virtual servers are created and a file is downloaded simultaneously from all of them. ☆ : pull request is welcomed
- Host: GitHub
- URL: https://github.com/idrsdev/cn_project
- Owner: idrsdev
- License: gpl-3.0
- Created: 2020-05-29T12:30:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-07T09:02:19.000Z (over 5 years ago)
- Last Synced: 2025-03-03T15:47:39.648Z (over 1 year ago)
- Topics: python, tcp-ip
- Language: Python
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CN_Project
Group Members:
[Bilal Waheed](https://github.com/bilalwaheed099/)
[Malik Idrees](https://github.com/Malik-Idrees/)
python virtual multiserver downloader where a number of virtual servers are created and a file is downloaded simultaneously from all of them
To test run it store a video.mp4 file in root directory and use commands given below
-n : No of virtual servers
-p : ports on which the server will run
-i : intervals after which status is updated(Only for client though)
-f : a path to input file relative/absolute
-a : server's IP address
-o : output path where output will be stored with a file extension e.g ..\..\\outputvideo.mp4
although -a receives IP address but SERVER is set to work on localhost
# Run server
```shell
python server.py -n 4 -p 10002 10003 10004 10005 -i 2 -f video.mp4
```
# Run client
```shell
python client.py -a 192.168.1.1 -p 10002 10003 10004 10005 -i 2 -o outputvideo.mp4
```
# future changes that you could add
server crash handling and load distribution if particular server is unavailable.
with current setup each server that client wants to connect should be running.