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

The async listener-accept state structure. The structure contains a pointer to the listener socket, and pointers to a callback and error functions. The callback function returns a populated qsc_socket_server_accept_result structure. The error function returns the listener socket and an qsc_socket_exceptions error code. More...

#include <socketserver.h>

Data Fields

qsc_socketsource
void(* callback )(qsc_socket_server_accept_result *result)
void(* error )(qsc_socket *sock, qsc_socket_exceptions exception)
volatile int32_t tcount
qsc_mutex smutex

Detailed Description

The async listener-accept state structure. The structure contains a pointer to the listener socket, and pointers to a callback and error functions. The callback function returns a populated qsc_socket_server_accept_result structure. The error function returns the listener socket and an qsc_socket_exceptions error code.

Field Documentation

◆ callback

void(* callback) (qsc_socket_server_accept_result *result)

A pointer to a callback function

◆ error

void(* error) (qsc_socket *sock, qsc_socket_exceptions exception)

A pointer to an error function

◆ smutex

qsc_mutex smutex

The async server mutex

◆ source

qsc_socket* source

A pointer to the listener socket

◆ tcount

volatile int32_t tcount

The running thread count


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