Class SimpleTestClient
java.lang.Object
org.newsclub.net.unix.demo.SimpleTestClient
A simple demo client.
Reads a server greeting string, then sends a "Hello Server" string as a response.
Finally, reads integers (via
DataInputStream), then sends twice the sent value each,
unless a "-123" magic number is read to indicate the end of the conversation.- Author:
- Christian Kohlschütter
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleTestClient
public SimpleTestClient()
-
-
Method Details
-
main
- Throws:
IOException
-