🖥️TCP Server
Class Features
Support for TLS and non-TLS client connections
Support for client authentication with Java key file (JKS)
Read/write methods for byte[], char[], String and line input
The optional TLS client authentication allows the server application to handle authenticated and non-authenticated clients separately (similar to authenticated and non-authenticated HTTP sessions). Use method getAuthenticatedClient() to check for a valid name.
Test TLS connections macOS/Linux: openssl s_client -connect hostname:port
Test non-TLS connections macOS/Linux: nc hostname port Windows: telnet hostname port
Example Start Echo Server
Example Echo Server Server Thread
Architecture Overview
Last updated