public abstract class Segment
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static byte |
ACK_FLAG |
static byte |
CHK_FLAG |
static byte |
EAK_FLAG |
static byte |
FIN_FLAG |
static byte |
NUL_FLAG |
static byte |
RST_FLAG |
static int |
RUDP_HEADER_LEN |
static int |
RUDP_VERSION |
static byte |
SYN_FLAG |
Constructor and Description |
---|
Segment() |
Modifier and Type | Method and Description |
---|---|
int |
flags() |
int |
get_ackn() |
int |
get_flags() |
int |
get_hlen() |
int |
get_nretx() |
int |
get_seqn() |
int |
getAck() |
byte[] |
getBytes() |
int |
getRetxCounter() |
int |
length() |
static Segment |
parse(byte[] bytes) |
static Segment |
parse(byte[] bytes,
int off,
int len) |
int |
seq() |
void |
set_ackn(int _ackn) |
void |
set_flags(int _flags) |
void |
set_hlen(int _hlen) |
void |
set_nretx(int _nretx) |
void |
set_seqn(int _seqn) |
void |
setAck(int ackn) |
void |
setRetxCounter(int n) |
java.lang.String |
toString() |
abstract java.lang.String |
type() |
public static final int RUDP_VERSION
public static final int RUDP_HEADER_LEN
public static final byte SYN_FLAG
public static final byte ACK_FLAG
public static final byte EAK_FLAG
public static final byte RST_FLAG
public static final byte NUL_FLAG
public static final byte CHK_FLAG
public static final byte FIN_FLAG
public abstract java.lang.String type()
public int flags()
public int seq()
public int length()
public void setAck(int ackn)
public int getAck()
public int getRetxCounter()
public void setRetxCounter(int n)
public byte[] getBytes()
public java.lang.String toString()
toString
in class java.lang.Object
public static Segment parse(byte[] bytes)
public static Segment parse(byte[] bytes, int off, int len)
public int get_flags()
public void set_flags(int _flags)
public int get_hlen()
public void set_hlen(int _hlen)
public int get_seqn()
public void set_seqn(int _seqn)
public int get_ackn()
public void set_ackn(int _ackn)
public int get_nretx()
public void set_nretx(int _nretx)