Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv29593/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.84
retrieving revision 1.85
diff -C2 -d -r1.84 -r1.85
*** Tcp.java 8 Sep 2006 17:01:42 -0000 1.84
--- Tcp.java 8 Sep 2006 17:19:55 -0000 1.85
***************
*** 747,752 ****
*/
! int mx = 1;
while (inV.contains((Integer)mx))
{
--- 747,759 ----
*/
! System.out.println(" [*** TCP ***] GetNumber call.");
+
+ Enumeration vEnum = inV.elements();
+ while (vEnum.hasMoreElements()) {
+ System.out.println(" [*** TCP ***] Vector contains: "+ ((Integer)vEnum.nextElement()) + ".");
+ }
+
+ int mx = 1;
while (inV.contains((Integer)mx))
{
***************
*** 754,758 ****
}
! return mx--;
}
--- 761,769 ----
}
! mx--;
!
! System.out.println(" [*** TCP ***] GetNumber end of call, returning number=" + mx + ".");
!
! return mx;
}
|