forked from I2P_Developers/i2p.i2p
javadoc fix
This commit is contained in:
@@ -16,15 +16,20 @@ import net.i2p.data.Hash;
|
|||||||
import net.i2p.util.SimpleByteCache;
|
import net.i2p.util.SimpleByteCache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the same as DataMessage but with a variable message type.
|
* This is similar to DataMessage or GarlicMessage but with a variable message type.
|
||||||
* This is defined so routers can route messages they don't know about.
|
* This is defined so routers can route messages they don't know about.
|
||||||
* We don't extend DataMessage so that any code that does (instanceof DataMessage)
|
* We don't extend those classes so that any code that does (instanceof foo)
|
||||||
* won't return true for this type. Load tests use DataMessage, for example.
|
* won't return true for this type. Load tests use DataMessage, for example.
|
||||||
|
* Also, those classes include an additional length field that we can't use here.
|
||||||
* See InboundMessageDistributor.
|
* See InboundMessageDistributor.
|
||||||
*
|
*
|
||||||
* There is no setData() method, the only way to create one of these is to
|
* There is no setData() method, the only way to create one of these is to
|
||||||
* read it with readMessage() (i.e., it came from some other router)
|
* read it with readMessage() (i.e., it came from some other router)
|
||||||
*
|
*
|
||||||
|
* As of 0.8.12 this class is working. It is used at the IBGW to reduce the processing
|
||||||
|
* required. For zero-hop IB tunnels, the convert() method is used to reconstitute
|
||||||
|
* a standard message class.
|
||||||
|
*
|
||||||
* @since 0.7.12 but broken before 0.8.12
|
* @since 0.7.12 but broken before 0.8.12
|
||||||
*/
|
*/
|
||||||
public class UnknownI2NPMessage extends I2NPMessageImpl {
|
public class UnknownI2NPMessage extends I2NPMessageImpl {
|
||||||
@@ -64,7 +69,12 @@ public class UnknownI2NPMessage extends I2NPMessageImpl {
|
|||||||
return curIndex;
|
return curIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return 0-255 */
|
/**
|
||||||
|
* Note that this returns the "true" type, so that
|
||||||
|
* the IBGW can correctly make drop decisions.
|
||||||
|
*
|
||||||
|
* @return 0-255
|
||||||
|
*/
|
||||||
public int getType() { return _type; }
|
public int getType() { return _type; }
|
||||||
|
|
||||||
|
|
||||||
@@ -85,7 +95,6 @@ public class UnknownI2NPMessage extends I2NPMessageImpl {
|
|||||||
*</pre>
|
*</pre>
|
||||||
*
|
*
|
||||||
* @param offset starting at the ID (must skip the type)
|
* @param offset starting at the ID (must skip the type)
|
||||||
* @return total length of the message
|
|
||||||
* @since 0.8.12
|
* @since 0.8.12
|
||||||
*/
|
*/
|
||||||
public void readBytesIgnoreChecksum(byte data[], int offset) throws I2NPMessageException, IOException {
|
public void readBytesIgnoreChecksum(byte data[], int offset) throws I2NPMessageException, IOException {
|
||||||
|
Reference in New Issue
Block a user