A blocking or concurrent TLS socket server using a fixed connection pool. More...
#include <tlssocket.h>
A blocking or concurrent TLS socket server using a fixed connection pool.
| volatile bool active[QSC_TLS_SOCKET_SERVER_CONNECTIONS_MAX] |
The active-state flags for each connection slot.
| void* callbackstate |
The application callback state.
| bool concurrent |
Indicates that concurrent server mode is active.
The fixed connection pool.
| bool initialized |
Indicates that the server has been initialized.
| qsc_tls_socket_listener listener |
The server listener.
| void* logstate |
The server logging callback state.
| size_t maxclients |
The configured maximum number of concurrent clients.
| qsc_tls_socket_server_connect_callback onconnect |
The application connect callback.
| qsc_tls_socket_server_disconnect_callback ondisconnect |
The application disconnect callback.
The application error callback.
The server-level structured logging callback.
| qsc_tls_socket_server_receive_callback onreceive |
The application receive callback.
| qsc_mutex poolmutex |
The fixed pool mutex.
| volatile bool running |
Indicates that the server accept loop is running.
| volatile bool started[QSC_TLS_SOCKET_SERVER_CONNECTIONS_MAX] |
The worker-started flags for each connection slot.
The fixed worker state pool.
| qsc_thread workerthreads[QSC_TLS_SOCKET_SERVER_CONNECTIONS_MAX] |
The fixed worker thread handle pool.