public static class UNICAST.UnicastHeader extends Header
| DATA | seqno | conn_id | first | | ACK | seqno | | SEND_FIRST_SEQNO |
Modifier and Type | Field and Description |
---|---|
static byte |
ACK |
static byte |
DATA |
static byte |
SEND_FIRST_SEQNO |
Modifier | Constructor and Description |
---|---|
|
UnicastHeader() |
protected |
UnicastHeader(byte type,
long seqno) |
protected |
UnicastHeader(byte type,
long seqno,
short conn_id,
boolean first) |
Modifier and Type | Method and Description |
---|---|
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 UnicastHeader()
protected UnicastHeader(byte type, long seqno)
protected 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()
Header
public UNICAST.UnicastHeader 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.