Fixed RandomGenerator2

This commit is contained in:
senft-lap 2012-12-04 14:14:38 +01:00
parent 1acd532363
commit 9610421e97
2 changed files with 2 additions and 4 deletions

View File

@ -28,7 +28,7 @@ public class RandomGenerator2 {
new NetworkDumper(firstNode);
for (int i = 0; i < START_NODES; i++) {
nodes.add(new Node());
spawn();
}
while (true) {

View File

@ -221,14 +221,12 @@ public class Node {
}
public void gatherInformationOfNetwork() {
byte[] myAddr;
try {
myAddr = BufferUtil.addrToBytes(((InetSocketAddress) channel
byte[] myAddr = BufferUtil.addrToBytes(((InetSocketAddress) channel
.getLocalAddress()));
sendBroadcast(MessageType.STATUS, myAddr);
} catch (IOException e) {
}
}
protected void setNeighborsOfNode(String node, List<String> neighbors) {