Package ch.k43.util
Klasse KSocketServerThreadSample
java.lang.Object
java.lang.Thread
ch.k43.util.KSocketServerThread
ch.k43.util.KSocketServerThreadSample
- Alle implementierten Schnittstellen:
AutoCloseable
,Runnable
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.
- 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.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Feldübersicht
Von Klasse geerbte Felder java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Konstruktorübersicht
-
Methodenübersicht
Von Klasse geerbte Methoden ch.k43.util.KSocketServerThread
close, getAuthenticatedClient, getAuthenticatedClientCN, getCiphers, getLastError, getProtocol, isConnected, isDataAvailable, isSecuredConnection, read, readLine, write, write, write, writeLine
Von Klasse geerbte Methoden java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, yield
-
Konstruktordetails
-
KSocketServerThreadSample
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 SchnittstelleRunnable
- Setzt außer Kraft:
run
in KlasseKSocketServerThread
-
toString
String representation of object.- Setzt außer Kraft:
toString
in KlasseKSocketServerThread
- Seit:
- 2024.08.23
-