32 Commits

Author SHA1 Message Date
senft-lap
9610421e97 Fixed RandomGenerator2 2012-12-04 14:14:38 +01:00
senft-desktop
2d9fad0b8d Added callback for ack messages 2012-11-30 17:43:12 +01:00
senft-desktop
36867f2813 Sending leave and new neighbors in just one single packet. 2012-11-30 16:32:49 +01:00
senft-desktop
76fde044e3 Fixed the bug that caused all the lost acks. We just gave the new acks a random id, but we didnt check if we already had an ack with that id. 2012-11-30 16:27:21 +01:00
senft-desktop
aeea7ad486 Also add own neighbors to network-list. 2012-11-30 14:06:39 +01:00
senft-desktop
b994f691a8 Really keep track of network when receiving status commands 2012-11-30 12:18:18 +01:00
senft-desktop
378ad5f1e0 Forgot to commit the List the saves the network structure 2012-11-30 10:51:15 +01:00
senft-desktop
e4c66fbb35 Really not forwarding broadcast packets to the node we received it from 2012-11-30 10:47:27 +01:00
senft-desktop
ed3e067b55 Broadcast/status should be working now 2012-11-30 10:24:10 +01:00
senft-desktop
c4cd42d4c8 Added generics 2012-11-30 10:21:21 +01:00
senft-desktop
f5eba59b19 Send/receive status 2012-11-29 19:56:22 +01:00
senft-desktop
e6e8b234eb Changed visibility of some methods. 2012-11-29 18:23:43 +01:00
senft-desktop
384c14b359 Moved addrToBytes to BufferUtil 2012-11-29 18:23:19 +01:00
senft-desktop
b8656a57b6 Moved UDPListen to own thread 2012-11-29 18:05:45 +01:00
senft-desktop
1a61fdab0e Broadcast packets are now broadcasted by receiving nodes 2012-11-29 17:40:29 +01:00
senft-desktop
ad5323cfaa Reused addrToBytes 2012-11-29 17:32:28 +01:00
senft-desktop
aff1784327 Added broadcast sending [no answer so far] 2012-11-29 17:12:41 +01:00
senft-desktop
11c3c60a8e Changed visibility of send methods. 2012-11-29 16:30:13 +01:00
senft-desktop
52aa64b200 Wait for all acks before leaving 2012-11-29 16:00:49 +01:00
senft-desktop
eea5415f2f Added TimeoutThread for acks and resending of not-acknowledged msgs 2012-11-28 20:02:30 +01:00
senft-lap
ec37895f80 Start Listen Thread 2012-11-28 09:52:52 +01:00
senft-desktop
57617e3156 Naming conventions... weil "readability ist das wichtigste ueberhaupt" ;) 2012-11-28 08:48:47 +01:00
d3638f0f26 fixed and sorted p2p. Seperate functions for Send_ and Receive_, warning fixes, netbeans configuration 2012-11-28 00:24:24 +01:00
senft-lap
9972e5ddfe Extracted ack-checking 2012-11-27 16:58:24 +01:00
senft-lap
50b8614723 Extracted getNeighborId() 2012-11-27 16:47:33 +01:00
senft-lap
15bdd8a483 Extracted method for sending acks 2012-11-27 16:39:59 +01:00
senft-lap
0b9810aa62 putAddrInBuf() -> sendAddrTo() 2012-11-27 16:29:16 +01:00
senft-lap
cc035d910a Added acks 2012-11-27 15:50:50 +01:00
lutz
6a2215a491 modified leave method. all nodes are linked circularly. 2012-11-25 18:47:40 +01:00
senft-lap
64b1e0dc04 Implemented "status" cmd to check a nodes neighbors ad hoc. Printing a "new neighbor" message only if the received neighbor really is new. 2012-11-23 16:16:43 +01:00
senft-lap
d359ccb961 Old leave strategy. 2012-11-23 16:14:39 +01:00
senft-desktop
8062d73901 Having 3 Packages with 1 class each is not exactly how its supposed to be.... 2012-11-21 18:24:10 +01:00