Changeset 50606a6
- Timestamp:
- Dec 9, 2011 8:19:00 PM (9 years ago)
- Branches:
- master
- Children:
- 1c4b033
- Parents:
- 25b0603f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
router/java/src/net/i2p/data/i2np/UnknownI2NPMessage.java
r25b0603f r50606a6 17 17 18 18 /** 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. 20 20 * 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) 22 22 * 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. 23 24 * See InboundMessageDistributor. 24 25 * 25 26 * There is no setData() method, the only way to create one of these is to 26 27 * 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. 27 32 * 28 33 * @since 0.7.12 but broken before 0.8.12 … … 65 70 } 66 71 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 */ 68 78 public int getType() { return _type; } 69 79 … … 86 96 * 87 97 * @param offset starting at the ID (must skip the type) 88 * @return total length of the message89 98 * @since 0.8.12 90 99 */
Note: See TracChangeset
for help on using the changeset viewer.