net.i2p.router.transport.udp
Class InboundMessageState
java.lang.Object
net.i2p.router.transport.udp.InboundMessageState
public class InboundMessageState
- extends java.lang.Object
Hold the raw data fragments of an inbound message
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InboundMessageState
public InboundMessageState(RouterContext ctx,
long messageId,
Hash from)
receiveFragment
public boolean receiveFragment(UDPPacketReader.DataReader data,
int dataFragment)
- Read in the data from the fragment.
- Returns:
- true if the data was ok, false if it was corrupt
isComplete
public boolean isComplete()
isExpired
public boolean isExpired()
getLifetime
public long getLifetime()
getFrom
public Hash getFrom()
getMessageId
public long getMessageId()
getCompleteSize
public int getCompleteSize()
createACKBitfield
public ACKBitfield createACKBitfield()
releaseResources
public void releaseResources()
getFragments
public ByteArray[] getFragments()
getFragmentCount
public int getFragmentCount()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object