Commit Graph

35 Commits

Author SHA1 Message Date
WickedJack99
108197d2df Added method to check if file exists, to read String from file and get first and last 20 byte. 2024-04-06 21:52:44 +02:00
WickedJack99
5135212555 Created method, that return first and last 20 chars of a string. 2024-04-06 21:06:22 +02:00
WickedJack99
564d9c8e96 Added functionality to read content from file and send it to queue for sending to the peer that requested it. 2024-04-06 20:59:35 +02:00
WickedJack99
7a71004e22 Removed unecessary import. 2024-04-06 20:58:38 +02:00
WickedJack99
50e69ba4ba Replaced paths with constants. 2024-04-06 20:42:32 +02:00
WickedJack99
6443258398 Added joblist attribute. 2024-04-06 20:41:51 +02:00
WickedJack99
53e859704a Changed enum names and added reference to joblist. 2024-04-06 20:41:30 +02:00
WickedJack99
930fec8efc Changed type of file list to map which maps key filename on value filepath. 2024-04-06 20:27:22 +02:00
WickedJack99
7a70587427 Removed class, since FileReaderWriter fulfills this task now. 2024-04-06 20:26:35 +02:00
WickedJack99
226d05f871 Added updating this peer at config after setting ip and port. 2024-04-06 20:26:04 +02:00
WickedJack99
01ec9be2d5 Added ShowNodes, ShowFiles and PublishFile functionality. 2024-04-06 20:24:59 +02:00
WickedJack99
7988a920dc Added unknown online state. 2024-04-06 20:24:13 +02:00
WickedJack99
002c56a3f2 Added reading from and writing to config file. 2024-04-06 20:23:53 +02:00
WickedJack99
46ccf30724 Timeout related classes and functionality added. 2024-04-06 20:23:15 +02:00
WickedJack99
17cf6041da Removed .peers.json since it now gets automatically generated. 2024-04-06 16:50:15 +02:00
WickedJack99
71dd04ce1f File to administrate centralized constants. 2024-04-04 22:14:16 +02:00
WickedJack99
7cee82a5c3 Added function to create peer config file. 2024-04-04 22:13:42 +02:00
WickedJack99
aa5a71ac05 Moved functionality of getting ip and port from user from InputThread to main. 2024-04-04 22:11:50 +02:00
WickedJack99
e3275d6485 Port check returns now directly DatagramSocket at success instead of boolean. 2024-04-04 22:09:33 +02:00
WickedJack99
3178a86631 Added automatically created dir. 2024-04-04 21:07:48 +02:00
WickedJack99
cd716357ce Changed peers file to hidden file type. 2024-04-04 20:53:46 +02:00
WickedJack99
2fe7df43ab Changed package name from java.src to vslab1.src because java not allowed as name at compiling stage (upsi xD). 2024-04-04 19:32:57 +02:00
WickedJack99
674ae83178 Peersinformation json file. 2024-04-01 17:28:26 +02:00
WickedJack99
bc0282c851 Receive part classes. 2024-04-01 17:28:01 +02:00
WickedJack99
7b91cd7498 Class with methods to check if enterde ip and port are valid. 2024-04-01 17:27:37 +02:00
WickedJack99
2e44d0efcf Peer online state enum. 2024-04-01 17:27:07 +02:00
WickedJack99
eb2e96b107 Peer class related. 2024-04-01 17:26:53 +02:00
WickedJack99
d6b840e485 TODO Timeout Handler class. 2024-04-01 17:26:06 +02:00
WickedJack99
b8c67f7a08 Threads and interface Terminatable. 2024-04-01 17:25:36 +02:00
WickedJack99
9bba1d20b4 Classes part of request logic. 2024-04-01 17:25:04 +02:00
WickedJack99
d8a6174a9d Classes part of sending logic. 2024-04-01 17:23:55 +02:00
WickedJack99
dbd1294323 Enum for message types 2024-04-01 17:22:09 +02:00
WickedJack99
aab743aa2f Main program 2024-04-01 17:21:34 +02:00
WickedJack99
3344ee4770 maven file 2024-04-01 17:21:15 +02:00
WickedJack99
e8f4c9e911 gitignore file 2024-04-01 17:20:57 +02:00