Update of /cvsroot/javanetsim/javaNetSim/guiUI
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5833/guiUI
Modified Files:
MainScreen.java
Log Message:
Index: MainScreen.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/guiUI/MainScreen.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** MainScreen.java 19 Nov 2005 17:54:33 -0000 1.5
--- MainScreen.java 19 Nov 2005 21:53:51 -0000 1.6
***************
*** 1774,1779 ****
if(port!=null){
try{
! ((Echo)((core.ApplicationLayerDevice)Sim.getNode(inNodeName)).getApp(7)).setPort(Integer.valueOf(port).intValue());
! ((Echo)((core.ApplicationLayerDevice)Sim.getNode(inNodeName)).getApp(7)).Listen();
this.addToConsole("Echo server now listening on " + inNodeName + " on port " + port + "\n");
}catch(Exception e){
--- 1774,1781 ----
if(port!=null){
try{
!
! Echo echo1 = ((Echo)((core.ApplicationLayerDevice)Sim.getNode(inNodeName)).getApp(7));
! echo1.setPort(Integer.valueOf(port).intValue());
! echo1.Listen();
this.addToConsole("Echo server now listening on " + inNodeName + " on port " + port + "\n");
}catch(Exception e){
|