[Javanetsim-cvs] javaNetSim/core/protocolsuite/tcp_ip Echo_tcp.java, 1.24, 1.25 Tcp.java, 1.63, 1.6
Status: Beta
Brought to you by:
darkkey
From: Alexander B. <da...@us...> - 2006-09-03 13:49:18
|
Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv18187/core/protocolsuite/tcp_ip Modified Files: Echo_tcp.java Tcp.java Log Message: Index: Tcp.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Tcp.java,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** Tcp.java 3 Sep 2006 13:05:31 -0000 1.63 --- Tcp.java 3 Sep 2006 13:49:15 -0000 1.64 *************** *** 1527,1530 **** --- 1527,1531 ---- // listener.RecvData(inPacket.getTCP_message()); PassUpstairs(listener, Elm); + } Index: Echo_tcp.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Echo_tcp.java,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Echo_tcp.java 3 Sep 2006 09:53:38 -0000 1.24 --- Echo_tcp.java 3 Sep 2006 13:49:15 -0000 1.25 *************** *** 20,23 **** --- 20,25 ---- import core.Packet; + import core.Error; + import core.Simulation; *************** *** 170,173 **** --- 172,176 ---- */ public void RecvData(String Data) throws LowLinkException, TransportLayerException { + System.out.println(Data); //processing the protocol doings. if(appType == 0){ *************** *** 200,205 **** --- 203,216 ---- this.counts--; try { + LayerInfo protInfo3 = new LayerInfo(getClass().getName()); + protInfo3.setObjectName(mParentStack.getParentNodeName()); + protInfo3.setDataType("Echo Protocol Data"); + protInfo3.setLayer("Application "); + protInfo3.setDescription("Sending echo message '" + Data + "' to server..."); + Simulation.addLayerInfo(protInfo); + SendData(Data); }catch(Exception e){ + Error.Report(e); ///*TODO*: here to catch } *************** *** 226,229 **** --- 237,241 ---- SendData(Data); }catch(Exception e){ + Error.Report(e); ///*TODO*: here to catch } |