[Javanetsim-cvs] javaNetSim/core/protocolsuite/tcp_ip Tcp.java, 1.108, 1.109
Status: Beta
Brought to you by:
darkkey
From: QweR <qw...@us...> - 2009-10-25 17:45:03
|
Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv823 Modified Files: Tcp.java Log Message: change text of messages Index: Tcp.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Tcp.java,v retrieving revision 1.108 retrieving revision 1.109 diff -C2 -d -r1.108 -r1.109 *** Tcp.java 24 Oct 2009 23:24:33 -0000 1.108 --- Tcp.java 25 Oct 2009 17:44:54 -0000 1.109 *************** *** 665,669 **** int nextrt = tmr.getResendDelay(); if(nextrt>0){ ! resend_mes = " Next resend on packet loss in "+(nextrt/1000.0)+"s."; } } --- 665,669 ---- int nextrt = tmr.getResendDelay(); if(nextrt>0){ ! resend_mes = " Next retransmission on packet loss in "+(nextrt/1000.0)+"s."; } } *************** *** 1004,1013 **** Elm.setState(TCP_session.FIN_WAIT_2); Elm.last_timer = createTimer(Elm.getSocket(), null, Tcp.resendtimes_EXIT); ! printLayerInfo("Closing on error in "+(Tcp.resendtimes_EXIT[0]/1000.0)+"s."); } else if(inPacket.get_FIN_flag()){ Elm.setState(TCP_session.CLOSING); Elm.last_timer = createTimer(Elm.getSocket(), null, Tcp.resendtimes_SYNC_CLOSE); ! printLayerInfo("Closing on error in "+(Tcp.resendtimes_SYNC_CLOSE[0]/1000.0)+"s."); boolean flags[] = genFlags(Tcp.ACK); sendTCPSegment(Elm.getSocket(), "", flags, inPacket.get_sequence_number()+1, Tcp.resendtimes_NULL); --- 1004,1013 ---- Elm.setState(TCP_session.FIN_WAIT_2); Elm.last_timer = createTimer(Elm.getSocket(), null, Tcp.resendtimes_EXIT); ! printLayerInfo("Closing if FIN will not have received in "+(Tcp.resendtimes_EXIT[0]/1000.0)+"s."); } else if(inPacket.get_FIN_flag()){ Elm.setState(TCP_session.CLOSING); Elm.last_timer = createTimer(Elm.getSocket(), null, Tcp.resendtimes_SYNC_CLOSE); ! printLayerInfo("Closing if ACK will not have received in "+(Tcp.resendtimes_SYNC_CLOSE[0]/1000.0)+"s."); boolean flags[] = genFlags(Tcp.ACK); sendTCPSegment(Elm.getSocket(), "", flags, inPacket.get_sequence_number()+1, Tcp.resendtimes_NULL); |