SSF.OS.TCP
Class SendItem

java.lang.Object
  |
  +--SSF.OS.TCP.SendItem

public class SendItem
extends java.lang.Object

A Send queue item is a wrapper around one tcp data segment in the send queue, including the TCP bookkeeping information such as the number of retransmissions and the time of last transmission of this data segment.


Field Summary
 TCP_Message msg
          the TCP message in this item
 SendItem next
          reference to the previous and next item in the send queue
 SendItem prev
          reference to the previous and next item in the send queue
 short rexTimes
          the number of time the message had been retransmitted
 
Constructor Summary
SendItem()
           
 
Method Summary
 int getMsgLen()
           
 float getPrevSendTime()
          Get the value of prevSendTime.
 long nextseqno()
          get next sequence number of the data message in this item
 void printItem()
          print out the content of the data message
 long seqno()
          get the sequence number of the first byte of the data message in this item
 void setPrevSendTime(float v)
          Set the value of prevSendTime.
 void setSEQno(long seq)
          set the sequence number of the first byte of the data message in this item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

public SendItem next
reference to the previous and next item in the send queue


prev

public SendItem prev
reference to the previous and next item in the send queue


msg

public TCP_Message msg
the TCP message in this item


rexTimes

public short rexTimes
the number of time the message had been retransmitted

Constructor Detail

SendItem

public SendItem()
Method Detail

nextseqno

public long nextseqno()
get next sequence number of the data message in this item


seqno

public long seqno()
get the sequence number of the first byte of the data message in this item


setSEQno

public void setSEQno(long seq)
set the sequence number of the first byte of the data message in this item


getMsgLen

public int getMsgLen()

getPrevSendTime

public float getPrevSendTime()
Get the value of prevSendTime.

Returns:
Value of prevSendTime.

setPrevSendTime

public void setPrevSendTime(float v)
Set the value of prevSendTime.

Parameters:
v - Value to assign to prevSendTime.

printItem

public void printItem()
print out the content of the data message