public static class UNICAST2.Unicast2Header extends Header
| DATA | seqno | conn_id | first | | ACK | seqno | | SEND_FIRST_SEQNO | seqno |
Modifier and Type | Field and Description |
---|---|
static byte |
ACK |
static byte |
DATA |
static byte |
SEND_FIRST_SEQNO |
static byte |
STABLE |
static byte |
XMIT_REQ |
Modifier | Constructor and Description |
---|---|
|
Unicast2Header() |
protected |
Unicast2Header(byte type) |
protected |
Unicast2Header(byte type,
long seqno) |
protected |
Unicast2Header(byte type,
long seqno,
long high,
short conn_id,
boolean first) |
Modifier and Type | Method and Description |
---|---|
UNICAST2.Unicast2Header |
copy() |
static UNICAST2.Unicast2Header |
createAckHeader(long acked_seqno,
short conn_id) |
static UNICAST2.Unicast2Header |
createDataHeader(long seqno,
short conn_id,
boolean first) |
static UNICAST2.Unicast2Header |
createSendFirstSeqnoHeader(long seqno_received) |
static UNICAST2.Unicast2Header |
createStableHeader(short conn_id,
long low,
long high) |
static UNICAST2.Unicast2Header |
createXmitReqHeader() |
short |
getConnId() |
long |
getHighSeqno() |
long |
getSeqno() |
byte |
getType() |
boolean |
isFirst() |
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
size()
To be implemented by subclasses.
|
java.lang.String |
toString() |
static java.lang.String |
type2Str(byte t) |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public static final byte DATA
public static final byte XMIT_REQ
public static final byte SEND_FIRST_SEQNO
public static final byte STABLE
public static final byte ACK
public Unicast2Header()
protected Unicast2Header(byte type)
protected Unicast2Header(byte type, long seqno)
protected Unicast2Header(byte type, long seqno, long high, short conn_id, boolean first)
public static UNICAST2.Unicast2Header createDataHeader(long seqno, short conn_id, boolean first)
public static UNICAST2.Unicast2Header createXmitReqHeader()
public static UNICAST2.Unicast2Header createStableHeader(short conn_id, long low, long high)
public static UNICAST2.Unicast2Header createSendFirstSeqnoHeader(long seqno_received)
public static UNICAST2.Unicast2Header createAckHeader(long acked_seqno, short conn_id)
public byte getType()
public long getSeqno()
public long getHighSeqno()
public short getConnId()
public boolean isFirst()
public static java.lang.String type2Str(byte t)
public final int size()
Header
public UNICAST2.Unicast2Header copy()
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
java.lang.Exception
Copyright © 1998-2020 Red Hat. All Rights Reserved.