[Javanetsim-cvs] javaNetSim/core/protocolsuite/tcp_ip Udp.java,1.3,1.4
Status: Beta
Brought to you by:
darkkey
From: gift <gi...@us...> - 2005-11-18 20:48:05
|
Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20406/core/protocolsuite/tcp_ip Modified Files: Udp.java Log Message: comments changed Index: Udp.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Udp.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Udp.java 18 Nov 2005 19:41:32 -0000 1.3 --- Udp.java 18 Nov 2005 20:47:56 -0000 1.4 *************** *** 159,163 **** for(i=0;i<PORT_QUANT;i++) { ! PortTable.put((PORT_START_NUMBER+i),Elm); } } --- 159,163 ---- for(i=0;i<PORT_QUANT;i++) { ! PortTable.put((PORT_START_NUMBER+i),Elm); // CHECK HERE } } *************** *** 226,230 **** throw new TransportLayerException("UDP Error: port is closed! Port "+inPacket.get_destPort() +" on host \""+ mParentStack.getParentNodeName()+"\"." ); // no "break" needed ;) ! case 3: //busy port, let's check whether it's busy by us and our application ;) if ((Elm.connectedtoIP==inPacket.getSourceIPAddress()) && (Elm.connectedtoPort==inPacket.get_srcPort())) //temporary { --- 226,230 ---- throw new TransportLayerException("UDP Error: port is closed! Port "+inPacket.get_destPort() +" on host \""+ mParentStack.getParentNodeName()+"\"." ); // no "break" needed ;) ! case 3: //busy port, let's check whether it's busy by us (sender) ;) if ((Elm.connectedtoIP==inPacket.getSourceIPAddress()) && (Elm.connectedtoPort==inPacket.get_srcPort())) //temporary { |