TCP Server
Create a simple transaction server in minutes.
KServerSocket Class Overview
TLS and Non-TLS Client Connection Support Enables both secure (TLS) and non-secure client connections to server applications, offering flexibility for diverse networking scenarios.
Client Authentication Supports client authentication using Java KeyStore (JKS) files, providing robust security for sensitive communication.
Optional TLS Client Authentication Allows server applications to differentiate between authenticated and non-authenticated clients, similar to handling authenticated and non-authenticated HTTP sessions. Use the getAuthenticatedClient() method to verify a valid client name.
Flexible Data Read/Write Methods Includes efficient methods for reading and writing data in various formats, such as byte[], char[], String, and line-based input.
Testing TLS Connections macOS/Linux: Use
openssl s_client -connect hostname:port
Testing non-TLS Connections macOS/Linux: Use
nc hostname port
Windows: Usetelnet hostname port
Example Start Echo Server
Example Echo Server Server Thread
Architecture Overview
Last updated