|
||||||||||
| 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
|
+--SSF.OS.TCP.TCP_Message
TCP_Message represents a TCP header and data segment together with the prepended IpHeader.
| Field Summary | |
int |
seglen
segment length of this TCP message |
| Fields inherited from class SSF.OS.TCP.TCP_Header |
ACK, ACKno, AdvertisedWnd, DEST_port, FIN, flags, PSH, RST, SEQno, SOURCE_port, SYN, URG |
| Constructor Summary | |
TCP_Message(TCP_Header th,
int destAddr,
int len)
Construct a TCP message with TCP header th, including a prepended IpHeader with given destination IP address destAddr, source IP address set to -1, and virtual segment length len bytes. |
|
TCP_Message(TCP_Header th,
int srcAddr,
int destAddr,
int len)
Construct a TCP message with TCP header th, including a prepended IpHeader with source IP address srcAddr, destination IP address destAddr, and virtual segment length len bytes. |
|
TCP_Message(TCP_Message msg)
Copy constructor used with retransmission: copies the prepended IpHeader's fields SOURCE_IP, DEST_IP, TOS, but NOT the TTL field, which is set to the default value. |
|
| Method Summary | |
int |
bytecount()
Returns the total number of bytes contained in this TCP packet (header + data). |
long |
getLastSEQ()
Returns the sequence number of the last byte in this segment. |
void |
printMsg()
|
| Methods inherited from class SSF.OS.TCP.TCP_Header |
version |
| 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 seglen
| Constructor Detail |
public TCP_Message(TCP_Header th,
int destAddr,
int len)
public TCP_Message(TCP_Header th,
int srcAddr,
int destAddr,
int len)
public TCP_Message(TCP_Message msg)
throws ProtocolException
| Method Detail |
public void printMsg()
public long getLastSEQ()
public int bytecount()
bytecount in class TCP_Header
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||