Thread: [Javanetsim-cvs] javaNetSim/core/protocolsuite/tcp_ip Echo_tcp.java,1.9,1.10 Tcp.java,1.14,1.15
Status: Beta
Brought to you by:
darkkey
From: gift <gi...@us...> - 2005-11-28 21:50:46
|
Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27578/core/protocolsuite/tcp_ip Modified Files: Echo_tcp.java Tcp.java Log Message: OK here we go Index: Tcp.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Tcp.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** Tcp.java 28 Nov 2005 20:29:49 -0000 1.14 --- Tcp.java 28 Nov 2005 21:50:37 -0000 1.15 *************** *** 854,858 **** listener = (Application)Elm.application; //Elm.isFIN_sent=true; - will be set in "sendTCPSegment" ! mParentStack.sendTCPSegment(listener,msg,flags); } else { --- 854,858 ---- listener = (Application)Elm.application; //Elm.isFIN_sent=true; - will be set in "sendTCPSegment" ! // mParentStack.sendTCPSegment(listener,msg,flags); } else { *************** *** 864,868 **** listener = (Application)Elm.application; Elm.isFIN_confirmed=true; ! mParentStack.sendTCPSegment(listener,msg,flags); } else { --- 864,868 ---- listener = (Application)Elm.application; Elm.isFIN_confirmed=true; ! // mParentStack.sendTCPSegment(listener,msg,flags); } else { *************** *** 873,877 **** Application listener; listener = (Application)Elm.application; ! mParentStack.sendTCPSegment(listener,msg,flags); } ClosePort((Application)Elm.application); //FIN sent and confirmed!!! Closing connection --- 873,877 ---- Application listener; listener = (Application)Elm.application; ! // mParentStack.sendTCPSegment(listener,msg,flags); } ClosePort((Application)Elm.application); //FIN sent and confirmed!!! Closing connection *************** *** 931,935 **** if (rs>2) listener.RecvData(inPacket.getTCP_message()); ! if ((our_ack!=2 || Elm.sent_segments!=2) && Elm.PortStatus!=1) mParentStack.sendTCPSegment(listener,msg,flags); //our_ack==2 when connection is established //we have sent last ACK and we can close TCP port now --- 931,935 ---- if (rs>2) listener.RecvData(inPacket.getTCP_message()); ! // if ((our_ack!=2 || Elm.sent_segments!=2) && Elm.PortStatus!=1) mParentStack.sendTCPSegment(listener,msg,flags); //our_ack==2 when connection is established //we have sent last ACK and we can close TCP port now Index: Echo_tcp.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Echo_tcp.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Echo_tcp.java 28 Nov 2005 20:29:49 -0000 1.9 --- Echo_tcp.java 28 Nov 2005 21:50:37 -0000 1.10 *************** *** 108,112 **** { ! mParentStack.SendTCP(this, Data); //processing the protocol doings. --- 108,112 ---- { ! // mParentStack.SendTCP(this, Data); //processing the protocol doings. |