summaryrefslogtreecommitdiff
path: root/java/netsvcs/Logger
diff options
context:
space:
mode:
authoreea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-13 16:17:46 +0000
committereea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-13 16:17:46 +0000
commitf1d6f243e623ce886425466ee521732e0322903d (patch)
treec2a79d96af28858dab1ccdac8afac9f1137f2cc8 /java/netsvcs/Logger
parent33a5a7198bf0331eb0a0d0a4eec60705aa310b32 (diff)
downloadATCD-f1d6f243e623ce886425466ee521732e0322903d.tar.gz
Decided to remove the LogClient since it basically just duplicated a
test of the netsvcs I already had. :(
Diffstat (limited to 'java/netsvcs/Logger')
-rw-r--r--java/netsvcs/Logger/LogClient.java71
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);
- }
- }
-}
-
-