public void readFrom(DataInput in) throws Exception { type = in.readByte(); switch (type) { case DATA: seqno = Util.readLong(in); conn_id = in.readShort(); first = in.readBoolean(); break; case ACK: seqno = Util.readLong(in); break; case SEND_FIRST_SEQNO: seqno = Util.readLong(in); break; } }
public void readFrom(DataInput in) throws Exception { type = in.readByte(); switch (type) { case DATA: seqno = Util.readLong(in); conn_id = in.readShort(); first = in.readBoolean(); break; case XMIT_REQ: break; case STABLE: long[] seqnos = Util.readLongSequence(in); seqno = seqnos[0]; high_seqno = seqnos[1]; conn_id = in.readShort(); break; case SEND_FIRST_SEQNO: seqno = Util.readLong(in); break; } }