diff --git a/src/kademlia/core/KadServer.java b/src/kademlia/core/KadServer.java index a3bd9bc..63d6aca 100644 --- a/src/kademlia/core/KadServer.java +++ b/src/kademlia/core/KadServer.java @@ -121,7 +121,6 @@ public class KadServer if (recv != null) { /* Setup the receiver to handle message response */ - //System.out.println(this.localNode + " Putting Receiver for comm: " + comm + " Receiver: " + recv); receivers.put(comm, recv); TimerTask task = new TimeoutTask(comm, recv); timer.schedule(task, this.config.responseTimeout()); @@ -210,8 +209,6 @@ public class KadServer Message msg = messageFactory.createMessage(messCode, din); din.close(); - //System.out.println(this.localNode.getNodeId() + " Message Received: [Comm: " + comm + "] " + msg); - /* Get a receiver for this message */ Receiver receiver; if (this.receivers.containsKey(comm)) diff --git a/src/kademlia/dht/StoredContentManager.java b/src/kademlia/dht/StoredContentManager.java index 5eee9bb..b3a6318 100644 --- a/src/kademlia/dht/StoredContentManager.java +++ b/src/kademlia/dht/StoredContentManager.java @@ -85,7 +85,6 @@ class StoredContentManager } else { - System.out.println(this); } return false; } diff --git a/src/kademlia/message/ContentLookupReceiver.java b/src/kademlia/message/ContentLookupReceiver.java index 75d4383..8417384 100644 --- a/src/kademlia/message/ContentLookupReceiver.java +++ b/src/kademlia/message/ContentLookupReceiver.java @@ -51,7 +51,6 @@ public class ContentLookupReceiver implements Receiver * Return a the K closest nodes to this content identifier * We create a NodeLookupReceiver and let this receiver handle this operation */ - System.out.println("We do not have this content"); NodeLookupMessage lkpMsg = new NodeLookupMessage(msg.getOrigin(), msg.getParameters().getKey()); new NodeLookupReceiver(server, localNode, this.config).receive(lkpMsg, comm); } diff --git a/src/kademlia/message/SimpleReceiver.java b/src/kademlia/message/SimpleReceiver.java index 52aa14c..fd178cf 100644 --- a/src/kademlia/message/SimpleReceiver.java +++ b/src/kademlia/message/SimpleReceiver.java @@ -14,12 +14,12 @@ public class SimpleReceiver implements Receiver @Override public void receive(Message incoming, int conversationId) { - System.out.println("Received message: " + incoming); + } @Override public void timeout(int conversationId) throws IOException { - System.out.println("SimpleReceiver message timeout."); + } } diff --git a/src/kademlia/operation/ContentLookupOperation.java b/src/kademlia/operation/ContentLookupOperation.java index b431c4f..93cf872 100644 --- a/src/kademlia/operation/ContentLookupOperation.java +++ b/src/kademlia/operation/ContentLookupOperation.java @@ -245,7 +245,6 @@ public class ContentLookupOperation implements Operation, Receiver /* Get the Content and check if it satisfies the required parameters */ StorageEntry content = msg.getContent(); - System.out.println("Content Received: " + content); this.contentFound = content; this.isContentFound = true; } diff --git a/src/kademlia/routing/RoutingTable.java b/src/kademlia/routing/RoutingTable.java index bce8257..46592b9 100644 --- a/src/kademlia/routing/RoutingTable.java +++ b/src/kademlia/routing/RoutingTable.java @@ -261,8 +261,6 @@ public class RoutingTable implements KadRoutingTable { int bucketId = this.getBucketId(n.getNodeId()); - //System.out.println(this.localNode + " Removing unresponsive node " + n); - /* Remove the contact from the bucket */ this.buckets[bucketId].removeNode(n); }