QSC Post Quantum Cryptographic Library 1.3.0.0 (C1)
A post quantum secure library written in Ansi C
Loading...
Searching...
No Matches
qsc_tls_socket_server Struct Reference

A blocking or concurrent TLS socket server using a fixed connection pool. More...

#include <tlssocket.h>

Data Fields

qsc_tls_socket_listener listener
qsc_tls_socket_server_connect_callback onconnect
qsc_tls_socket_server_receive_callback onreceive
qsc_tls_socket_server_disconnect_callback ondisconnect
qsc_tls_socket_server_error_callback onerror
qsc_tls_socket_log_callback onlog
void * callbackstate
void * logstate
qsc_tls_socket_connection connections [QSC_TLS_SOCKET_SERVER_CONNECTIONS_MAX]
qsc_tls_socket_server_worker_state workerstates [QSC_TLS_SOCKET_SERVER_CONNECTIONS_MAX]
qsc_thread workerthreads [QSC_TLS_SOCKET_SERVER_CONNECTIONS_MAX]
volatile bool active [QSC_TLS_SOCKET_SERVER_CONNECTIONS_MAX]
volatile bool started [QSC_TLS_SOCKET_SERVER_CONNECTIONS_MAX]
qsc_mutex poolmutex
size_t maxclients
volatile bool running
bool concurrent
bool initialized

Detailed Description

A blocking or concurrent TLS socket server using a fixed connection pool.

Field Documentation

◆ active

The active-state flags for each connection slot.

◆ callbackstate

void* callbackstate

The application callback state.

◆ concurrent

bool concurrent

Indicates that concurrent server mode is active.

◆ connections

The fixed connection pool.

◆ initialized

bool initialized

Indicates that the server has been initialized.

◆ listener

The server listener.

◆ logstate

void* logstate

The server logging callback state.

◆ maxclients

size_t maxclients

The configured maximum number of concurrent clients.

◆ onconnect

The application connect callback.

◆ ondisconnect

The application disconnect callback.

◆ onerror

The application error callback.

◆ onlog

The server-level structured logging callback.

◆ onreceive

The application receive callback.

◆ poolmutex

qsc_mutex poolmutex

The fixed pool mutex.

◆ running

volatile bool running

Indicates that the server accept loop is running.

◆ started

volatile bool started[QSC_TLS_SOCKET_SERVER_CONNECTIONS_MAX]

The worker-started flags for each connection slot.

◆ workerstates

◆ workerthreads

qsc_thread workerthreads[QSC_TLS_SOCKET_SERVER_CONNECTIONS_MAX]

The fixed worker thread handle pool.


The documentation for this struct was generated from the following file:
  • C:/Users/stepp/Documents/Visual Studio 2022/Projects/C/QSC/QSC/tlssocket.h