--- projects/cms/source/host/java/LowLevelNet.java 2000/11/27 20:36:24 1.2 +++ projects/cms/source/host/java/LowLevelNet.java 2000/11/30 04:09:11 1.3 @@ -3,13 +3,14 @@ //---IMPORTS--- import java.net.*; +import java.io.*; /** * Provides low level network functions for JavaHost * * * @author $Author: ab11 $ - * @version $Id: LowLevelNet.java,v 1.2 2000/11/27 20:36:24 ab11 Exp $ + * @version $Id: LowLevelNet.java,v 1.3 2000/11/30 04:09:11 ab11 Exp $ */ class LowLevelNet { @@ -26,12 +27,17 @@ class LowLevelNet { if ( inText.length() != 0 ){ // will throw an exception if an error occurs, so must bung it in a try - // try { + try { DatagramPacket udp = new DatagramPacket( inText.getBytes(), inText.length(), config.getFilterName(), config.getFilterUDPPort() ); - // } - //catch ( UnknownHostException e ){ - // the serverName supplied could not be resolved using dns - // } + DatagramSocket sendSoc = new DatagramSocket(); + sendSoc.send(udp); + } + catch ( SocketException e ){ + // the serverName supplied could not be resolved using dns + } + catch ( IOException e ){ + // problem sending.. + } } }