Changeset dc04414e


Ignore:
Timestamp:
Sep 16, 2011 2:49:41 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4e52b9c8
Parents:
a7f8560
Message:

cleanups, logging, javadoc

Location:
router/java/src/net/i2p/router
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/HandleFloodfillDatabaseStoreMessageJob.java

    ra7f8560 rdc04414e  
    144144                            getContext().blocklist().isBlocklisted(key) &&
    145145                            _log.shouldLog(Log.WARN))
    146                                 _log.warn("Blocklisting new peer " + key);
     146                                _log.warn("Blocklisting new peer " + key + ' ' + ri);
    147147                    } else {
    148148                        Set oldAddr = prevNetDb.getAddresses();
     
    152152                            getContext().blocklist().isBlocklisted(key) &&
    153153                            _log.shouldLog(Log.WARN))
    154                                 _log.warn("New address received, Blocklisting old peer " + key);
     154                                _log.warn("New address received, Blocklisting old peer " + key + ' ' + ri);
    155155                    }
    156156                }
  • router/java/src/net/i2p/router/transport/CommSystemFacadeImpl.java

    ra7f8560 rdc04414e  
    296296        if (cport != null && cport.length() > 0) {
    297297            nport = cport;
    298         } else if (Boolean.valueOf(_context.getProperty(PROP_I2NP_NTCP_AUTO_PORT, "true")).booleanValue()) {
     298        } else if (_context.getBooleanPropertyDefaultTrue(PROP_I2NP_NTCP_AUTO_PORT)) {
    299299            nport = UDPProps.getProperty(UDPAddress.PROP_PORT);
    300300        }
  • router/java/src/net/i2p/router/transport/ntcp/NTCPConnection.java

    ra7f8560 rdc04414e  
    978978       
    979979    /**
    980      * the contents of the buffer include some fraction of one or more
     980     * Connection must be established!
     981     *
     982     * The contents of the buffer include some fraction of one or more
    981983     * encrypted and encoded I2NP messages.  individual i2np messages are
    982984     * encoded as "sizeof(data)+data+pad+crc", and those are encrypted
    983985     * with the session key and the last 16 bytes of the previous encrypted
    984986     * i2np message.  the contents of the buffer is owned by the EventPumper,
    985      * so data should be copied out
     987     * so data should be copied out.
    986988     */
    987989    synchronized void recvEncryptedI2NP(ByteBuffer buf) {
  • router/java/src/net/i2p/router/transport/udp/UDPTransport.java

    ra7f8560 rdc04414e  
    14061406    /** default true */
    14071407    private boolean allowDirectUDP() {
    1408         String allowDirect = _context.getProperty(PROP_ALLOW_DIRECT);
    1409         return ( (allowDirect == null) || (Boolean.valueOf(allowDirect).booleanValue()) );
     1408        return _context.getBooleanPropertyDefaultTrue(PROP_ALLOW_DIRECT);
    14101409    }
    14111410
Note: See TracChangeset for help on using the changeset viewer.