Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17125/core/protocolsuite/tcp_ip
Modified Files:
Echo_tcp.java ProtocolStack.java
Log Message:
Line 159 Echo_tcp schould be uncommented!
There is an error I'll fix it tomorrow
Index: ProtocolStack.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/ProtocolStack.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** ProtocolStack.java 27 Nov 2005 20:14:12 -0000 1.20
--- ProtocolStack.java 27 Nov 2005 20:36:05 -0000 1.21
***************
*** 1596,1600 ****
rval=mTCPprotocol.ReservePort(application, inDestIPAddress, indestPort);
if (sendTCPSegment(application, msg, flags))
! return rval; else return 0;
}
--- 1596,1600 ----
rval=mTCPprotocol.ReservePort(application, inDestIPAddress, indestPort);
if (sendTCPSegment(application, msg, flags))
! return rval; else return -1;
}
Index: Echo_tcp.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Echo_tcp.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Echo_tcp.java 27 Nov 2005 20:14:12 -0000 1.7
--- Echo_tcp.java 27 Nov 2005 20:36:05 -0000 1.8
***************
*** 72,76 ****
sdPort = port;
clientPort = mParentStack.ConnectTCP(this, sdHost, sdPort);
! if (clientPort>0) return true; else return false;
}
--- 72,76 ----
sdPort = port;
clientPort = mParentStack.ConnectTCP(this, sdHost, sdPort);
! if (clientPort>-1) return true; else return false;
}
***************
*** 157,161 ****
Simulation.addLayerInfo(protInfo2);
! //SendData(Data);
mParentStack.SendFinalTCP(this, Data); //will close both connections
--- 157,161 ----
Simulation.addLayerInfo(protInfo2);
! // SendData(Data);
mParentStack.SendFinalTCP(this, Data); //will close both connections
|