net.i2p.router.transport.udp
class InboundMessageState extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_FRAGMENTS |
Constructor and Description |
---|
InboundMessageState(RouterContext ctx,
long messageId,
Hash from) |
Modifier and Type | Method and Description |
---|---|
ACKBitfield |
createACKBitfield() |
int |
getCompleteSize() |
int |
getFragmentCount() |
ByteArray[] |
getFragments() |
Hash |
getFrom() |
long |
getLifetime() |
long |
getMessageId() |
boolean |
isComplete() |
boolean |
isExpired() |
boolean |
receiveFragment(UDPPacketReader.DataReader data,
int dataFragment)
Read in the data from the fragment.
|
void |
releaseResources() |
String |
toString() |
public static final int MAX_FRAGMENTS
public InboundMessageState(RouterContext ctx, long messageId, Hash from)
public boolean receiveFragment(UDPPacketReader.DataReader data, int dataFragment)
public boolean isComplete()
public boolean isExpired()
public long getLifetime()
public Hash getFrom()
public long getMessageId()
public int getCompleteSize()
public ACKBitfield createACKBitfield()
public void releaseResources()
public ByteArray[] getFragments()
public int getFragmentCount()