public static Unicast2Header createXmitReqHeader(long low, long high) { if (low > high) throw new IllegalArgumentException("low (" + low + " needs to be <= high (" + high + ")"); Unicast2Header retval = new Unicast2Header(XMIT_REQ, low); retval.high_seqno = high; return retval; }
public static Unicast2Header createStableHeader(short conn_id, long low, long high) { if (low > high) throw new IllegalArgumentException("low (" + low + ") needs to be <= high (" + high + ")"); Unicast2Header retval = new Unicast2Header(STABLE, low); retval.high_seqno = high; retval.conn_id = conn_id; return retval; }