Commit Graph

63 Commits

Author SHA1 Message Date
WickedJack99
9b61971e78 Added PeerJoined sendable and requestable. 2024-04-22 15:58:53 +02:00
WickedJack99
c1364d09d7 Renamed class to a more suitable name. 2024-04-22 15:58:16 +02:00
WickedJack99
ab4d1f37b0 Added Leave sendable and requestable. 2024-04-22 15:57:34 +02:00
WickedJack99
b38696e75a Since split needs regex, added function that returns regex according to systems file separator. 2024-04-22 15:57:05 +02:00
WickedJack99
1986792a27 Added message parsing for join and leave messages. 2024-04-22 15:56:23 +02:00
WickedJack99
3d10282983 Added Join and Leave command. 2024-04-22 15:55:41 +02:00
WickedJack99
5d15c40cba Added JoinRequest sendable und requestable. 2024-04-22 15:55:16 +02:00
WickedJack99
5317cc3e85 added ignored files, updated readme. 2024-04-08 12:16:34 +02:00
WickedJack99
eb01e57fd9 Added author 2024-04-07 12:19:33 +02:00
WickedJack99
a226159df8 Added readme.md 2024-04-07 12:06:53 +02:00
WickedJack99
0beec0dc61 Removed unused imports. 2024-04-07 12:02:08 +02:00
WickedJack99
83c1858f65 Replaced functionality with method if FileReaderWriter. 2024-04-07 12:01:05 +02:00
WickedJack99
b603f297f7 Replaced code since there is now a method updatePeer to add information to peer. 2024-04-07 12:00:38 +02:00
WickedJack99
c00982c17c Correcting mistake, was adding to send queue at wrong request. 2024-04-07 11:59:49 +02:00
WickedJack99
f79527c16b Added nullcheck and moved functionality to ReceivedData class. 2024-04-07 11:57:26 +02:00
WickedJack99
7d2a68b439 Moved initialization of receiveBuffer, because of mistake, that old data remained in it. 2024-04-07 11:56:42 +02:00
WickedJack99
e647f69acb Added function to convert to JSONObject at ReceivedData class. 2024-04-07 11:55:52 +02:00
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