Changeset 96c565d


Ignore:
Timestamp:
Jun 26, 2018 6:45:11 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
2d24f213
Parents:
3c53dfe
Message:

Router: Misc. javadocs and debug

Location:
router/java/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/com/southernstorm/noise/protocol/SymmetricState.java

    r3c53dfe r96c565d  
    7373         * Noise protocol name is hardcoded.
    7474         *
    75          * @param protocolName The name of the Noise protocol, which is assumed to be valid.
    7675         * @param cipherName The name of the cipher within protocolName.
    7776         * @param hashName The name of the hash within protocolName.
  • router/java/src/net/i2p/data/router/RouterInfo.java

    r3c53dfe r96c565d  
    158158
    159159    /**
    160      * Retrieve the approximate date on which the info was published
    161      * (essentially a version number for the routerInfo structure, except that
    162      * it also contains freshness information - whether or not the router is
    163      * currently publishing its information).  This should be used to help expire
    164      * old routerInfo structures
     160     * Retrieve the timestamp on which the info was published,
     161     * essentially a version number for the RouterInfo.
     162     * This should be used to expire old RouterInfo structures.
    165163     *
    166164     */
  • router/java/src/net/i2p/router/OutNetMessage.java

    r3c53dfe r96c565d  
    372372            buf.append(" ID ").append(_messageId);
    373373        }
    374         buf.append(" expiring on ").append(new Date(_expiration));
     374        buf.append(" expiring ").append(new Date(_expiration));
    375375        buf.append(" priority ").append(_priority);
    376376        if (_failedTransports != null)
    377             buf.append(" failed delivery on transports ").append(_failedTransports);
     377            buf.append(" failed transports: ").append(_failedTransports);
    378378        if (_target == null)
    379             buf.append(" targetting no one in particular...");
     379            buf.append(" (null target)");
    380380        else
    381381            buf.append(" targetting ").append(_target.getIdentity().getHash().toBase64());
  • router/java/src/net/i2p/router/RouterVersion.java

    r3c53dfe r96c565d  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 0;
     21    public final static long BUILD = 1;
    2222
    2323    /** for example "-test" */
  • router/java/src/net/i2p/router/transport/crypto/DHSessionKeyBuilder.java

    r3c53dfe r96c565d  
    573573        public void returnUnused(DHSessionKeyBuilder builder) {
    574574            if (builder.getPeerPublicValue() != null) {
    575                 if (_log.shouldLog(Log.WARN))
    576                     _log.warn("builder returned used");
     575                _log.error("builder returned used", new Exception());
    577576                return;
    578577            }
  • router/java/src/net/i2p/router/transport/udp/UDPTransport.java

    r3c53dfe r96c565d  
    311311        if (port < 0) {
    312312            port = UDPEndpoint.selectRandomPort(_context);
    313             Map<String, String> changes = new HashMap<String, String>();
     313            Map<String, String> changes = new HashMap<String, String>(2);
    314314            changes.put(PROP_INTERNAL_PORT, Integer.toString(port));
    315315            changes.put(PROP_EXTERNAL_PORT, Integer.toString(port));
  • router/java/src/net/i2p/router/tunnel/pool/TunnelPool.java

    r3c53dfe r96c565d  
    306306     * Return a list of tunnels in the pool
    307307     *
    308      * @return list of TunnelInfo objects
     308     * @return A copy of the list of TunnelInfo objects
    309309     */
    310310    public List<TunnelInfo> listTunnels() {
Note: See TracChangeset for help on using the changeset viewer.