From 378ad5f1e096dc0814e58a6797dc360ecfeb0fb2 Mon Sep 17 00:00:00 2001 From: senft-desktop Date: Fri, 30 Nov 2012 10:51:15 +0100 Subject: [PATCH] Forgot to commit the List the saves the network structure --- ws2012/P2P/uebungen/4/src/node/Node.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ws2012/P2P/uebungen/4/src/node/Node.java b/ws2012/P2P/uebungen/4/src/node/Node.java index d25f2823..05e6aedc 100644 --- a/ws2012/P2P/uebungen/4/src/node/Node.java +++ b/ws2012/P2P/uebungen/4/src/node/Node.java @@ -29,6 +29,11 @@ public class Node { private Map acks = new HashMap(); + /** + * Saves the neighbor of each node in the network + */ + private Map> network = new HashMap<>(); + private volatile Thread thread; private UDPHandler udpListen;