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 |
DATA |
static byte |
SEND_FIRST_SEQNO |
static byte |
STABLE |
static byte |
XMIT_REQ |
| Constructor and Description |
|---|
Unicast2Header() |
| Modifier and Type | Method and Description |
|---|---|
UNICAST2.Unicast2Header |
copy() |
static UNICAST2.Unicast2Header |
createDataHeader(long seqno,
short conn_id,
boolean first) |
static UNICAST2.Unicast2Header |
createSendFirstSeqnoHeader(long seqno_received) |
static UNICAST2.Unicast2Header |
createStableHeader(long low,
long high) |
static UNICAST2.Unicast2Header |
createXmitReqHeader(long low,
long high) |
long |
getSeqno() |
void |
readFrom(java.io.DataInputStream 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.DataOutputStream 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 UNICAST2.Unicast2Header createDataHeader(long seqno, short conn_id, boolean first)
public static UNICAST2.Unicast2Header createXmitReqHeader(long low, long high)
public static UNICAST2.Unicast2Header createStableHeader(long low, long high)
public static UNICAST2.Unicast2Header createSendFirstSeqnoHeader(long seqno_received)
public long getSeqno()
public static java.lang.String type2Str(byte t)
public final int size()
Headerpublic UNICAST2.Unicast2Header copy()
public void writeTo(java.io.DataOutputStream out)
throws java.io.IOException
Streamablejava.io.IOExceptionpublic void readFrom(java.io.DataInputStream in)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
Streamablejava.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionCopyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.