Package ch.k43.util

Klasse KSocketServerThreadSample

Alle implementierten Schnittstellen:
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.
  • Konstruktordetails

    • KSocketServerThreadSample

      public KSocketServerThreadSample(Socket argSocket)
      Thread constructor.
      Parameter:
      argSocket - Socket passed by the KSocketServerListener during thread initialization
  • Methodendetails

    • run

      public void run()
      Thread main entry point (called by KSocketServerListener).
      Angegeben von:
      run in Schnittstelle Runnable
      Setzt außer Kraft:
      run in Klasse KSocketServerThread
    • toString

      public String toString()
      String representation of object.
      Setzt außer Kraft:
      toString in Klasse KSocketServerThread
      Seit:
      2024.08.23