Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27740/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.75
retrieving revision 1.76
diff -C2 -d -r1.75 -r1.76
*** Tcp.java 7 Sep 2006 15:20:44 -0000 1.75
--- Tcp.java 7 Sep 2006 15:38:16 -0000 1.76
***************
*** 161,164 ****
--- 161,170 ----
}
+ class Point{
+ public int i;
+
+ Point(){ i = 0; }
+ }
+
/**
* This method defines TCP timer
***************
*** 170,177 ****
public void TCPsetTimer(TCP_HashTableElement Elm, int inREP) {
try{
! 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);
} else {
System.out.println("##################################### ############ Sender Timer REinit due to new packet arrival! Elm id = " + Elm.returnID() + " && OLDID = " + timerid + "");
--- 176,193 ----
public void TCPsetTimer(TCP_HashTableElement Elm, int inREP) {
try{
! if(Elm.timer==null) {
!
! Point p = new Point();
! p = null;
!
! try{
! p.i = 1;
! }catch(Exception e){
! Error.Report(e);
! }
!
Elm.timer=new Timer();
Elm.timer.schedule(new TCPTask(Elm,TCP_CONNECT_TIME,this, inREP, ++timerid),TCP_CONNECT_TIME,TCP_CONNECT_TIME);
+ System.out.println("##################################### ############ Sender timer init! Elm id = " + Elm.returnID() + " ID = " + timerid + " Elm connected to port:" + Elm.connectedtoPort);
} else {
System.out.println("##################################### ############ Sender Timer REinit due to new packet arrival! Elm id = " + Elm.returnID() + " && OLDID = " + timerid + "");
***************
*** 289,293 ****
public void TCPsetServerTimer(TCP_HashTableElement Elm, int inlocalPort, int inREP) {
if(Elm.Servertimer==null) {
! System.out.println("Server Timer init!");
Elm.Servertimer=new Timer();
Elm.Servertimer.schedule(new TCPServerTask(Elm,inlocalPort,TCP_CONNECT_SERVER_TIME,this, inREP),TCP_CONNECT_SERVER_TIME,TCP_CONNECT_SERVER_TIME);
--- 305,309 ----
public void TCPsetServerTimer(TCP_HashTableElement Elm, int inlocalPort, int inREP) {
if(Elm.Servertimer==null) {
! System.out.println("Server Timer init == " + inlocalPort);
Elm.Servertimer=new Timer();
Elm.Servertimer.schedule(new TCPServerTask(Elm,inlocalPort,TCP_CONNECT_SERVER_TIME,this, inREP),TCP_CONNECT_SERVER_TIME,TCP_CONNECT_SERVER_TIME);
|