Class TestClient

java.lang.Object
  |
  +--TestClient

public class TestClient
extends java.lang.Object

Test client for SyntaxSocket

Gets host name & socket # from file clientConfig.txt which must be placed in the classpath
Exit client with ^C or "exit"
Shutdown server & exit client with "shutdown"


Constructor Summary
TestClient()
           
 
Method Summary
static void main(java.lang.String[] args)
          Gets host name and socket # from clientConfig.txt.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

TestClient

public TestClient()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.net.UnknownHostException,
                        java.io.IOException
Gets host name and socket # from clientConfig.txt.
Gets the server at host name & socket #
If there is no clientConfig.txt gets the server at default "localhost", socket #4711
Exit client with ^C or "exit"
Shutdown server & exit client with "shutdown"