public static class UNICAST.UnicastHeader extends Header
| DATA | seqno | conn_id | first | | ACK | seqno | | SEND_FIRST_SEQNO |
| 限定符和类型 | 字段和说明 |
|---|---|
static byte |
ACK |
static byte |
DATA |
static byte |
SEND_FIRST_SEQNO |
| 限定符 | 构造器和说明 |
|---|---|
|
UNICAST.UnicastHeader() |
protected |
UNICAST.UnicastHeader(byte type,
long seqno) |
protected |
UNICAST.UnicastHeader(byte type,
long seqno,
short conn_id,
boolean first) |
| 限定符和类型 | 方法和说明 |
|---|---|
UNICAST.UnicastHeader |
copy() |
static UNICAST.UnicastHeader |
createAckHeader(long seqno,
short conn_id) |
static UNICAST.UnicastHeader |
createDataHeader(long seqno,
short conn_id,
boolean first) |
static UNICAST.UnicastHeader |
createSendFirstSeqnoHeader(long seqno_received) |
long |
getSeqno() |
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 ACK
public static final byte SEND_FIRST_SEQNO
public UNICAST.UnicastHeader()
protected UNICAST.UnicastHeader(byte type,
long seqno)
protected UNICAST.UnicastHeader(byte type,
long seqno,
short conn_id,
boolean first)
public static UNICAST.UnicastHeader createDataHeader(long seqno, short conn_id, boolean first)
public static UNICAST.UnicastHeader createAckHeader(long seqno, short conn_id)
public static UNICAST.UnicastHeader createSendFirstSeqnoHeader(long seqno_received)
public long getSeqno()
public static java.lang.String type2Str(byte t)
public final int size()
Headerpublic UNICAST.UnicastHeader copy()
public void writeTo(java.io.DataOutput out)
throws java.lang.Exception
Streamablejava.lang.Exceptionpublic void readFrom(java.io.DataInput in)
throws java.lang.Exception
Streamablejava.lang.Exception