diff --git a/.DS_Store b/.DS_Store index 61c1717..41fdb6e 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/README.md b/README.md index a4aca03..bb1bd7b 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,6 @@ user> FILE:nazwa:dlugosc -> wysylam cos takiego wysylanie pliku w czesciach (konwertuje do bajtow) koniec polaczenia -/Users/kuba/Downloads/Vocab1.pdf \ No newline at end of file +/Users/kuba/Downloads/Vocab1.pdf + +/Users/kuba/Desktop/vid.mov \ No newline at end of file diff --git a/klient/src/main/java/Projekt/App.java b/klient/src/main/java/Projekt/App.java index a4212a1..36cf87c 100644 --- a/klient/src/main/java/Projekt/App.java +++ b/klient/src/main/java/Projekt/App.java @@ -118,7 +118,7 @@ public class App { byte[] bufor = new byte[tobyte]; System.arraycopy(fileContent, wyslano, bufor, 0, tobyte); fDos.write(bufor); //uwaga dodac sprawdzanie czy na pewno wyslalismy dobra liczbe bajtow - wyslano += 1024; + wyslano += tobyte; addMessage("WYSLANO: " + wyslano); } messageT.setText(""); diff --git a/server/server.c b/server/server.c index 3f0690f..add4827 100644 --- a/server/server.c +++ b/server/server.c @@ -295,7 +295,7 @@ int main(void) { if(read_plik < 0) { break; } - fwrite(msg, 1, 1024, plik); + fwrite(msg, 1, read_plik, plik); razem += read_plik; } fclose(plik); diff --git a/test.txt b/test.txt deleted file mode 100644 index b159169..0000000 Binary files a/test.txt and /dev/null differ diff --git a/wordpress-5.1.1-pl_PL.zip b/wordpress-5.1.1-pl_PL.zip deleted file mode 100644 index 572a005..0000000 Binary files a/wordpress-5.1.1-pl_PL.zip and /dev/null differ