Author: toad
Date: 2007-11-28 19:28:12 +0000 (Wed, 28 Nov 2007)
New Revision: 16037

Modified:
   trunk/freenet/src/freenet/node/PeerNode.java
Log:
comments update

Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java        2007-11-28 19:25:00 UTC 
(rev 16036)
+++ trunk/freenet/src/freenet/node/PeerNode.java        2007-11-28 19:28:12 UTC 
(rev 16037)
@@ -2865,9 +2865,10 @@

        // Recent packets sent/received
        // We record times and weak short hashes of the last 64 packets 
-       // sent/received. We can then send this information when we connect, 
-       // and if there are many packets which the other side sent but we 
-       // didn't receive, they can realise that they are not port forwarded.
+       // sent/received. When we connect successfully, we send the data
+       // on what packets we have sent, and the recipient can compare
+       // this to their records of received packets to determine if there
+       // is a problem, which usually indicates not being port forwarded.
        static final short TRACK_PACKETS = 64;
        private final long[] packetsSentTimes = new long[TRACK_PACKETS];
        private final long[] packetsRecvTimes = new long[TRACK_PACKETS];


Reply via email to