Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24254/core/protocolsuite/tcp_ip
Modified Files:
Echo_tcp.java Tcp.java
Log Message:
TCP v0.xx
Index: Tcp.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Tcp.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Tcp.java 26 Nov 2005 21:42:00 -0000 1.11
--- Tcp.java 27 Nov 2005 09:34:22 -0000 1.12
***************
*** 845,852 ****
listener.RecvData(inPacket.getTCP_message());
//if (!Elm.SegmentsToResend.isEmpty())
! mParentStack.sendTCPSegment(listener,msg,flags); //we have sent last ACK and we can close TCP port now
!
! /*NOTE!!!! MAYBE USEFUL TO COMMENT THIS LINE DUE TO THE STATISTIC*/ FreePort(listener);
} else { //we have already received this segment
--- 845,852 ----
listener.RecvData(inPacket.getTCP_message());
//if (!Elm.SegmentsToResend.isEmpty())
! // mParentStack.sendTCPSegment(listener,msg,flags); //we have sent last ACK and we can close TCP port now
!
! /*NOTE!!!! MAYBE USEFUL TO COMMENT THIS LINE DUE TO THE STATISTIC*/ // FreePort(listener);
} else { //we have already received this segment
Index: Echo_tcp.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Echo_tcp.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Echo_tcp.java 26 Nov 2005 21:42:00 -0000 1.3
--- Echo_tcp.java 27 Nov 2005 09:34:22 -0000 1.4
***************
*** 167,171 ****
//Close();
! Listen();
}catch(Exception e){
///*TODO*: here to catch
--- 167,171 ----
//Close();
! //Listen();
}catch(Exception e){
///*TODO*: here to catch
|