Class KSocketServerThreadSample

All Implemented Interfaces:
AutoCloseable, Runnable

public class KSocketServerThreadSample extends KSocketServerThread
Simple upper case echo server to show a sample KSocketServerThread implementation. Notes:
- Use "openssl s_client -connect hostname:9998" (linux) on client to test TLS server.
- Use "telnet hostname 9999" (windows) or "nc hostname 9999" (linux) on client to test non-TLS server.
  • Constructor Details

    • KSocketServerThreadSample

      public KSocketServerThreadSample(Socket argSocket)
      Thread constructor.
      Parameters:
      argSocket - Socket passed by the KSocketServerListener during thread initialization
  • Method Details