Package net.i2p.internal
Class PoisonI2CPMessage
java.lang.Object
net.i2p.data.i2cp.I2CPMessageImpl
net.i2p.internal.PoisonI2CPMessage
- All Implemented Interfaces:
I2CPMessage
public class PoisonI2CPMessage extends I2CPMessageImpl
For marking end-of-queues in a standard manner.
Don't actually send it.
- Since:
- 0.8.3
- Author:
- zzz
-
Field Summary
Fields Modifier and Type Field Description static intMESSAGE_TYPE -
Constructor Summary
Constructors Constructor Description PoisonI2CPMessage() -
Method Summary
Modifier and Type Method Description protected voiddoReadMessage(InputStream in, int size)Deprecated.don't do thisprotected byte[]doWriteMessage()Deprecated.don't do thisbooleanequals(Object object)intgetType()Return the unique identifier for this type of message, as specified in the network specification document under #ClientAccessLayerMessagesinthashCode()StringtoString()Methods inherited from class net.i2p.data.i2cp.I2CPMessageImpl
readBytes, readMessage, readMessage, sessionId, writeBytes, writeMessage
-
Field Details
-
MESSAGE_TYPE
public static final int MESSAGE_TYPE- See Also:
- Constant Field Values
-
-
Constructor Details
-
PoisonI2CPMessage
public PoisonI2CPMessage()
-
-
Method Details
-
doReadMessage
Deprecated.don't do thisDescription copied from class:I2CPMessageImplRead in the payload part of the message (after the initial 4 byte size and 1 byte type)- Specified by:
doReadMessagein classI2CPMessageImpl- Parameters:
in- InputStreamsize- payload size- Throws:
I2CPMessageException- always
-
doWriteMessage
Deprecated.don't do thisDescription copied from class:I2CPMessageImplWrite out the payload part of the message (not including the 4 byte size and 1 byte type)- Specified by:
doWriteMessagein classI2CPMessageImpl- Returns:
- byte array
- Throws:
I2CPMessageException- always
-
getType
public int getType()Description copied from interface:I2CPMessageReturn the unique identifier for this type of message, as specified in the network specification document under #ClientAccessLayerMessages- Returns:
- unique identifier for this type of message
-
hashCode
public int hashCode() -
equals
-
toString
-