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(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.
|
String |
toString() |
static String |
type2Str(byte t) |
void |
writeTo(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 String type2Str(byte t)
public final int size()
Headerpublic UNICAST.UnicastHeader copy()
public void writeTo(DataOutput out) throws Exception
StreamableExceptionpublic void readFrom(DataInput in) throws Exception
StreamableExceptionCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.