public static class UNICAST3.Header extends Header
| DATA | seqno | conn_id | first | | ACK | seqno | timestamp | | SEND_FIRST_SEQNO | timestamp | | CLOSE | conn_id |
限定符和类型 | 字段和说明 |
---|---|
static byte |
ACK |
static byte |
CLOSE |
static byte |
DATA |
static byte |
SEND_FIRST_SEQNO |
static byte |
XMIT_REQ |
限定符 | 构造器和说明 |
---|---|
|
UNICAST3.Header() |
protected |
UNICAST3.Header(byte type) |
protected |
UNICAST3.Header(byte type,
long seqno) |
protected |
UNICAST3.Header(byte type,
long seqno,
short conn_id,
boolean first) |
限定符和类型 | 方法和说明 |
---|---|
short |
connId() |
UNICAST3.Header |
copy() |
static UNICAST3.Header |
createAckHeader(long seqno,
short conn_id,
int timestamp) |
static UNICAST3.Header |
createCloseHeader(short conn_id) |
static UNICAST3.Header |
createDataHeader(long seqno,
short conn_id,
boolean first) |
static UNICAST3.Header |
createSendFirstSeqnoHeader(int timestamp) |
static UNICAST3.Header |
createXmitReqHeader() |
boolean |
first() |
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
|
long |
seqno() |
int |
size()
To be implemented by subclasses.
|
int |
timestamp() |
UNICAST3.Header |
timestamp(int ts) |
java.lang.String |
toString() |
byte |
type() |
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 static final byte XMIT_REQ
public static final byte CLOSE
public UNICAST3.Header()
protected UNICAST3.Header(byte type)
protected UNICAST3.Header(byte type, long seqno)
protected UNICAST3.Header(byte type, long seqno, short conn_id, boolean first)
public static UNICAST3.Header createDataHeader(long seqno, short conn_id, boolean first)
public static UNICAST3.Header createAckHeader(long seqno, short conn_id, int timestamp)
public static UNICAST3.Header createSendFirstSeqnoHeader(int timestamp)
public static UNICAST3.Header createXmitReqHeader()
public static UNICAST3.Header createCloseHeader(short conn_id)
public byte type()
public long seqno()
public short connId()
public boolean first()
public int timestamp()
public UNICAST3.Header timestamp(int ts)
public static java.lang.String type2Str(byte t)
public final int size()
Header
public UNICAST3.Header 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