diff options
author | eea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-13 16:17:46 +0000 |
---|---|---|
committer | eea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-13 16:17:46 +0000 |
commit | ee9426f18cc0571c90dfdf7385443557b9206864 (patch) | |
tree | c2a79d96af28858dab1ccdac8afac9f1137f2cc8 /java | |
parent | f017816afd6468221fafce98e18e9fb60f85ee76 (diff) | |
download | ATCD-ee9426f18cc0571c90dfdf7385443557b9206864.tar.gz |
Decided to remove the LogClient since it basically just duplicated a
test of the netsvcs I already had. :(
Diffstat (limited to 'java')
-rw-r--r-- | java/netsvcs/Logger/LogClient.java | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/java/netsvcs/Logger/LogClient.java b/java/netsvcs/Logger/LogClient.java deleted file mode 100644 index 3b5b64456b4..00000000000 --- a/java/netsvcs/Logger/LogClient.java +++ /dev/null @@ -1,71 +0,0 @@ -/************************************************* - * - * = PACKAGE - * netsvcs.Logger - * - * = FILENAME - * LogClient.java - * - *@author Everett Anderson - * - *************************************************/ -package netsvcs.Logger; - -import JACE.SOCK_SAP.*; -import JACE.OS.*; -import java.net.*; -import java.io.*; -import java.util.*; -import java.lang.*; - -/** - * Simple direct logging client to test the logging service. This is similar to - * C++ ACE's direct_logging example. Command line parameters are the port - * and host to log to. - */ -public class LogClient -{ - public static void main(String [] args) - { - - if (args.length != 2) { - ACE.ERROR("Command line arguments: <port> <hostname>"); - System.exit(1); - } - - Socket sock = null; - try { - - ACE.DEBUG("Trying: " + args[1] + " port " + args[0]); - - Integer port = new Integer(args[0]); - - sock = new Socket(args[1], port.intValue()); - - } catch (UnknownHostException e) { - ACE.ERROR("" + e); - System.exit(1); - } catch (IOException e) { - ACE.ERROR("Couldn't get socket"); - System.exit(1); - } - - try { - - DataOutputStream dos = new DataOutputStream(sock.getOutputStream()); - - LogRecord log = new LogRecord(); - log.msgData("hello world."); - - log.streamOutTo(dos); - - sock.close(); - - } catch (IOException e) { - ACE.ERROR("Error sending message"); - System.exit(1); - } - } -} - - |