net.clackrouter.gui.tcp
Class TCPStateAnalyzer

java.lang.Object
  extended by net.clackrouter.gui.tcp.TCPStateAnalyzer

public class TCPStateAnalyzer
extends java.lang.Object

Used to analyze a TCP flow that is going through the router.

Used by a TCP monitor, one per flow, to keep track of the behavior of a flow.


Field Summary
 boolean ack
           
 long ack_num
           
 boolean fin
           
 long seq_num
           
 boolean syn
           
 
Constructor Summary
TCPStateAnalyzer(TCPMonitor.TCPFlow parent, java.net.InetAddress myAddr, int port)
           
 
Method Summary
 boolean analyzeFlowState(VNSTCPPacket update)
           
 void analyzePacket(VNSTCPPacket update)
           
 java.net.InetAddress getAddress()
           
 int getBytesOutStanding()
           
 java.lang.String getControlString()
           
 int getDuplicateSends()
           
 java.lang.String getHistory()
           
 int getLastDataSize()
           
 int getLastPacketSize()
           
 int getPacketSeqCount()
           
 int getPacketsSent()
           
 int getPort()
           
 int getRecvWindow()
           
 java.lang.String getRole()
           
 java.lang.String getState()
           
 long getTotalBytesAcked()
           
 boolean isRetrans()
           
 void setRole(java.lang.String r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

seq_num

public long seq_num

ack_num

public long ack_num

syn

public boolean syn

fin

public boolean fin

ack

public boolean ack
Constructor Detail

TCPStateAnalyzer

public TCPStateAnalyzer(TCPMonitor.TCPFlow parent,
                        java.net.InetAddress myAddr,
                        int port)
Method Detail

getPort

public int getPort()

getAddress

public java.net.InetAddress getAddress()

getHistory

public java.lang.String getHistory()

getState

public java.lang.String getState()

getRole

public java.lang.String getRole()

setRole

public void setRole(java.lang.String r)

getLastPacketSize

public int getLastPacketSize()

getLastDataSize

public int getLastDataSize()

getTotalBytesAcked

public long getTotalBytesAcked()

isRetrans

public boolean isRetrans()

getRecvWindow

public int getRecvWindow()

getDuplicateSends

public int getDuplicateSends()

getPacketsSent

public int getPacketsSent()

getPacketSeqCount

public int getPacketSeqCount()

getBytesOutStanding

public int getBytesOutStanding()

analyzePacket

public void analyzePacket(VNSTCPPacket update)

analyzeFlowState

public boolean analyzeFlowState(VNSTCPPacket update)

getControlString

public java.lang.String getControlString()