Commit Graph

46 Commits

Author SHA1 Message Date
WickedJack99
33ea792d5e Changed output of errors from out to err. 2024-04-07 11:55:14 +02:00
WickedJack99
af69ffd0e7 Added command to add a peer to the peerlist. 2024-04-07 11:54:15 +02:00
WickedJack99
7dbfbaec6d Added functionality to update ones peer file list. 2024-04-07 11:53:43 +02:00
WickedJack99
d43abad0cb Removed test peers from config init string. 2024-04-07 11:52:49 +02:00
WickedJack99
ffe7b2b129 Added null check. 2024-04-06 22:13:55 +02:00
WickedJack99
66dce4d8a6 Added build information for fat jar. 2024-04-06 22:13:40 +02:00
WickedJack99
8931a4eed0 Removed test print for command. 2024-04-06 22:13:23 +02:00
WickedJack99
b0e75acc59 Added build instructions to maven file. 2024-04-06 22:02:47 +02:00
WickedJack99
fc90a0febf Moved get first and last 20 bytes to FileReaderWriter class. 2024-04-06 21:54:50 +02:00
WickedJack99
bd63dc96e1 Added equals for Peer class. 2024-04-06 21:54:14 +02:00
WickedJack99
b8b4407590 Added functionality to get file content. 2024-04-06 21:53:55 +02:00
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