Changeset 50606a6


Ignore:
Timestamp:
Dec 9, 2011 8:19:00 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1c4b033
Parents:
25b0603f
Message:

javadoc fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/data/i2np/UnknownI2NPMessage.java

    r25b0603f r50606a6  
    1717
    1818/**
    19  * This is the same as DataMessage but with a variable message type.
     19 * This is similar to DataMessage or GarlicMessage but with a variable message type.
    2020 * This is defined so routers can route messages they don't know about.
    21  * We don't extend DataMessage so that any code that does (instanceof DataMessage)
     21 * We don't extend those classes so that any code that does (instanceof foo)
    2222 * won't return true for this type. Load tests use DataMessage, for example.
     23 * Also, those classes include an additional length field that we can't use here.
    2324 * See InboundMessageDistributor.
    2425 *
    2526 * There is no setData() method, the only way to create one of these is to
    2627 * read it with readMessage() (i.e., it came from some other router)
     28 *
     29 * As of 0.8.12 this class is working. It is used at the IBGW to reduce the processing
     30 * required. For zero-hop IB tunnels, the convert() method is used to reconstitute
     31 * a standard message class.
    2732 *
    2833 * @since 0.7.12 but broken before 0.8.12
     
    6570    }
    6671   
    67     /** @return 0-255 */
     72    /**
     73     *  Note that this returns the "true" type, so that
     74     *  the IBGW can correctly make drop decisions.
     75     *
     76     *  @return 0-255
     77     */
    6878    public int getType() { return _type; }
    6979   
     
    8696     *
    8797     *  @param offset starting at the ID (must skip the type)
    88      *  @return total length of the message
    8998     *  @since 0.8.12
    9099     */
Note: See TracChangeset for help on using the changeset viewer.