test
Class SimpleClient
java.lang.Object
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
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 |
SimpleClient
public SimpleClient()
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