Class SimpleTestClient

java.lang.Object
org.newsclub.net.unix.demo.SimpleTestClient

public class SimpleTestClient extends Object
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 Details

    • SimpleTestClient

      public SimpleTestClient()
  • Method Details