[Javanetsim-cvs] javaNetSim/core/protocolsuite/tcp_ip Udp.java,1.10,1.11
Status: Beta
Brought to you by:
darkkey
From: gift <gi...@us...> - 2005-11-20 13:49:37
|
Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29914/core/protocolsuite/tcp_ip Modified Files: Udp.java Log Message: UID added Index: Udp.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/Udp.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Udp.java 20 Nov 2005 13:43:57 -0000 1.10 --- Udp.java 20 Nov 2005 13:49:29 -0000 1.11 *************** *** 533,537 **** break; case 1: // port is being listened to by whom? ! if (oldElm.application==application) //no UID required here :) check before update! { throw new TransportLayerException("UDP Error: already listening to port "+ inPort +"!"); --- 533,542 ---- break; case 1: // port is being listened to by whom? ! int UID1=-2; ! int UID2=-1; ! UID1=((Application)oldElm.application).getUID(); ! UID2=((Application)application).getUID(); ! ! if (UID1==UID2) //no UID required here :) check before update! { throw new TransportLayerException("UDP Error: already listening to port "+ inPort +"!"); |