test
Class SimpleClient

java.lang.Object
  extended by test.SimpleClient

public class SimpleClient
extends java.lang.Object

SimpleClient connects to TCP port 2000, writes a line of text, and then reads the echoed text back from the server. This client will detect network timeouts, and exit gracefully, rather than stalling. Start server, and the run by typing


Constructor Summary
SimpleClient()
           
 
Method Summary
static void main(java.lang.String[] args)
          Connects to a server on port 2000, and handles network timeouts gracefully
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleClient

public SimpleClient()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Connects to a server on port 2000, and handles network timeouts gracefully

Throws:
java.lang.Exception