|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolMessage
|
+--SSF.OS.TCP.TCP_Header
A simplified TCP header.
| Field Summary | |
static byte |
ACK
|
long |
ACKno
Acknowledgment number (next sequence number expected) |
int |
AdvertisedWnd
Advertised receive window size |
int |
DEST_port
destination port number |
static byte |
FIN
|
byte |
flags
Control flags of TCP header |
static byte |
PSH
|
static byte |
RST
|
long |
SEQno
sequence number of the first data byte in segment |
int |
SOURCE_port
source port number |
static byte |
SYN
|
static byte |
URG
|
| Constructor Summary | |
TCP_Header()
|
|
TCP_Header(int source_port,
int dest_port,
long seqno,
long ackno,
int advertised,
byte flag)
initialize a TCP_Header object |
|
TCP_Header(TCP_Header th)
copy constructor of TCP_Header |
|
| Method Summary | |
int |
bytecount()
return the number of bytes nominally used by this TCP header |
java.lang.String |
version()
Return the SSF.OS.TCP version number for this header |
| Methods inherited from class SSF.OS.ProtocolMessage |
carryPayload, copy, dropHeader, dropPayload, frombytes, fromVersion, header_bytecount, payload, previous, size, tobytes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int DEST_port
public int SOURCE_port
public long SEQno
public long ACKno
public int AdvertisedWnd
public byte flags
public static byte FIN
public static byte SYN
public static byte RST
public static byte PSH
public static byte ACK
public static byte URG
| Constructor Detail |
public TCP_Header(int source_port,
int dest_port,
long seqno,
long ackno,
int advertised,
byte flag)
dest_port - destination port numbersource_port - source port numberseqno - sequence number of the first data byte in segmentackno - acknowledgment number of the ACK packetadvertised - advertised receiver window sizeflag - control flag used to indicate packet typepublic TCP_Header()
public TCP_Header(TCP_Header th)
th - TCP_Header object to be copied| Method Detail |
public int bytecount()
bytecount in class ProtocolMessagepublic java.lang.String version()
version in class ProtocolMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||