Add files via upload #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now it retransmit if it didnt arrive and has a verification of corrupted files.
Para correto funcionamento do código,
é necessário colocar o arquivo a ser enviado na mesma pasta que o executável,
ter o python instalado e alterar na função "Split_file" o nome e a extensão do arquivo a ser enviado.
No executável "client.py" (Atualmente está "teste.txt").
O nome do arquivo que será salvo está localizado na função "Recv_files" do executável "server.py".
Atualmente o destino está configurado como "127.0.0.1" (IP de loopback),
mas pode ser alterado no início dos dois executáveis. "Local" e "dest" no "client.py" e "server_ip" no "server.py".
To work properly its necessary to put the file to be sent in the same directory as the executables,
it´s necessary to have python installed and change in the function "Split_file" the name and extension of the file to be sent.
In client.py on line 80 "f = open("CHANGE THIS.type", "rb")"
In Server.py on line 61 "buffer = open("CHANGE THIS.TYPE", "ab")"
currently in the Server theres a need to change the "server_ip" to the desired Server ip,
on port you can change to whatever you want.
In the Client theres a need to change the "local" to the desired Client ip and the port
On "dest" you can choose the Server ip and the port