Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv12359/core/protocolsuite/tcp_ip
Modified Files:
Tcp.java
Log Message:
Index: Tcp.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Tcp.java,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -d -r1.72 -r1.73
*** Tcp.java 7 Sep 2006 14:54:34 -0000 1.72
--- Tcp.java 7 Sep 2006 15:01:01 -0000 1.73
***************
*** 170,174 ****
public void TCPsetTimer(TCP_HashTableElement Elm, int inREP) {
if(Elm.timer==null) {
! System.out.println("Sender timer init! Elm id = " + Elm.returnID() + " ID = " + timerid + " Elm connected to port:" + Elm.connectedtoPort);
Elm.timer=new Timer();
Elm.timer.schedule(new TCPTask(Elm,TCP_CONNECT_TIME,this, inREP, timerid++),TCP_CONNECT_TIME,TCP_CONNECT_TIME);
--- 170,174 ----
public void TCPsetTimer(TCP_HashTableElement Elm, int inREP) {
if(Elm.timer==null) {
! System.out.println("##################################### ############ Sender timer init! Elm id = " + Elm.returnID() + " ID = " + timerid + " Elm connected to port:" + Elm.connectedtoPort);
Elm.timer=new Timer();
Elm.timer.schedule(new TCPTask(Elm,TCP_CONNECT_TIME,this, inREP, timerid++),TCP_CONNECT_TIME,TCP_CONNECT_TIME);
***************
*** 179,183 ****
Elm.timer=new Timer();
Elm.timer.schedule(new TCPTask(Elm,TCP_SENDER_TIME,this, inREP, timerid++), TCP_SENDER_TIME, TCP_SENDER_TIME);
! System.out.println(" Sender Timer REinit DONE! ID = " + timerid + " Elm connected to port:" + Elm.connectedtoPort);
}
--- 179,183 ----
Elm.timer=new Timer();
Elm.timer.schedule(new TCPTask(Elm,TCP_SENDER_TIME,this, inREP, timerid++), TCP_SENDER_TIME, TCP_SENDER_TIME);
! System.out.println("##################################### ############ Sender Timer REinit DONE! ID = " + timerid + " Elm connected to port:" + Elm.connectedtoPort);
}
***************
*** 208,212 ****
public void run() {
try{
! System.out.println("Timer start! ID: " + id);
if(!Elm.SegmentsToResend.isEmpty() && numRepeat>0) {
// this.cancel();
--- 208,212 ----
public void run() {
try{
! System.out.println("##################################### ############ In Timer.run()! ID: " + id);
if(!Elm.SegmentsToResend.isEmpty() && numRepeat>0) {
// this.cancel();
***************
*** 807,811 ****
if (flags[5]) Elm.isFIN_sent=true;
! TCPsetTimer(Elm,reps);
Elm=null;
--- 807,811 ----
if (flags[5]) Elm.isFIN_sent=true;
! TCPsetTimer(Elm,reps); ///!!!!!!!!!!!!!
Elm=null;
|