Este proyecto esta desarrollado para la materia de Arquitectura cliente servidor de la Universidad Tecnológica de Pereira, el objetivo es subir y descargar cualquier tipo de archivo.
Clone the project
git clone https://github.com/JGaviria0/FileServer
Go to the project directory
cd FileServer
Install dependencies
pip3 install -r requirements.txt
cd Server
python3 Server.py
cd Node
python3 Node.py [Server IP] [Server port]
Run the client, open other terminal
-
List
python3 Client/Client.py [Server IP] [Server port] list
-
Download
python3 Client/Client.py [Server IP] [Server port] download [file name]
-
Upload
python3 Client/Client.py [Server IP] [Server port] upload [file name]
-
List
python3 Client/Client.py 192.168.1.1 5555 list
-
Download
python3 Client/Client.py 192.168.1.1 5555 download Test.txt
-
Upload
python3 Client/Client.py 192.168.1.1 5555 upload Test.txt
BUF_SIZE=65536 #64KB on memory
PRINCIPAL_PATH='./../'
UPLOAD_TYPE='upload'
DOWNLOAD_TYPE='download'
SUBSCRIPTION_TYPE='subscrition'
LIST_TYPE='list'
MAIN_DIRECTORY='./Files/'