package net.i2p.router.transport.udp;

/**
 * Generic means of SACK/NACK transmission for partially or fully 
 * received messages
 */
public interface ACKBitfield {
    /** what message is this partially ACKing? */
    public long getMessageId(); 
    /** how many fragments are covered in this bitfield? */
    public int fragmentCount();
    /** has the given fragment been received? */
    public boolean received(int fragmentNum);
    /** has the entire message been received completely? */
    public boolean receivedComplete();
}
