From: Holger Z. <hz...@us...> - 2005-06-26 09:17:46
|
Update of /cvsroot/jake2/jake2/src/jake2/sys In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19526/src/jake2/sys Modified Files: NET.java Log Message: parseInt/Long may throw an exception Index: NET.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/sys/NET.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** NET.java 20 Feb 2005 18:33:16 -0000 1.7 --- NET.java 26 Jun 2005 09:17:33 -0000 1.8 *************** *** 28,35 **** import jake2.Globals; import jake2.game.cvar_t; ! import jake2.qcommon.*; import java.io.IOException; ! import java.net.*; import java.nio.ByteBuffer; import java.nio.channels.DatagramChannel; --- 28,42 ---- import jake2.Globals; import jake2.game.cvar_t; ! import jake2.qcommon.Com; ! import jake2.qcommon.Cvar; ! import jake2.qcommon.netadr_t; ! import jake2.qcommon.sizebuf_t; ! import jake2.util.Lib; import java.io.IOException; ! import java.net.DatagramSocket; ! import java.net.InetAddress; ! import java.net.InetSocketAddress; ! import java.net.SocketAddress; import java.nio.ByteBuffer; import java.nio.channels.DatagramChannel; *************** *** 141,145 **** a.type = Defines.NA_IP; if (address.length == 2) ! a.port = Integer.parseInt(address[1]); return true; } catch (Exception e) { --- 148,152 ---- a.type = Defines.NA_IP; if (address.length == 2) ! a.port = Lib.atoi(address[1]); return true; } catch (Exception e) { |