[Javanetsim-cvs] javaNetSim/core/protocolsuite/tcp_ip Tcp.java,1.43,1.44
Status: Beta
Brought to you by:
darkkey
From: gift <gi...@us...> - 2006-02-25 22:00:08
|
Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29366/core/protocolsuite/tcp_ip Modified Files: Tcp.java Log Message: v.XXXXXxx.YYYYY.yyyy Index: Tcp.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Tcp.java,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** Tcp.java 25 Feb 2006 01:11:54 -0000 1.43 --- Tcp.java 25 Feb 2006 22:00:04 -0000 1.44 *************** *** 470,477 **** Simulation.addLayerInfo(TCP_Info); Elm.addstats(TCPptr); Elm.reset(); } else ! { System.out.println("Timer cancel - part1!"); try{ --- 470,478 ---- Simulation.addLayerInfo(TCP_Info); Elm.addstats(TCPptr); + ((Application)Elm.application).DisconnectEvent(); Elm.reset(); } else ! { //nothing to resend, but numRepeat>0 System.out.println("Timer cancel - part1!"); try{ *************** *** 551,554 **** --- 552,556 ---- System.out.println("SERVER TIMEtoLIVE - OUT - awaiting connection timeout!"); Elm.addstats(TCPptr); + ((Application)Elm.application).DisconnectEvent(); Elm.reset(); try{ *************** *** 1556,1561 **** String msg=""; boolean flags[]={false,true,false,false,false,false}; /* URG, !ACK!, PSH, RST, SYN, FIN */ ! Application listener; ! listener = (Application)Elm.application; int ack_num=chk+1; //our_ack==2 when connection is established --- 1558,1562 ---- String msg=""; boolean flags[]={false,true,false,false,false,false}; /* URG, !ACK!, PSH, RST, SYN, FIN */ ! int ack_num=chk+1; //our_ack==2 when connection is established *************** *** 1563,1567 **** //{ //we are going to send ACK for received segment => adding it to SentACKs ! System.out.println(mParentStack.getHostName() + ":" + " Data exchange mode, BEFORE: I=" + inPacket.get_sequence_number()); if (inPacket.get_sequence_number() == 1) System.out.println("EVERYTHING IS OK, ready 6-th place I==1"); --- 1564,1570 ---- //{ //we are going to send ACK for received segment => adding it to SentACKs ! Application listener; ! listener = (Application)Elm.application; ! System.out.println(mParentStack.getHostName() + ":" + " Data exchange mode, BEFORE: I=" + inPacket.get_sequence_number()); if (inPacket.get_sequence_number() == 1) System.out.println("EVERYTHING IS OK, ready 6-th place I==1"); |