DKTP: Dual Key Tunneling Protocol 1.0.0.0a (A1)
A quantum secure dual-key encrypted tunneling protocol
connections.h
Go to the documentation of this file.
1/* 2025 Quantum Resistant Cryptographic Solutions Corporation
2 * All Rights Reserved.
3 *
4 * NOTICE: This software and all accompanying materials are the exclusive
5 * property of Quantum Resistant Cryptographic Solutions Corporation (QRCS).
6 * The intellectual and technical concepts contained within this implementation
7 * are proprietary to QRCS and its authorized licensors and are protected under
8 * applicable U.S. and international copyright, patent, and trade secret laws.
9 *
10 * CRYPTOGRAPHIC STANDARDS:
11 * - This software includes implementations of cryptographic algorithms such as
12 * SHA3, AES, and others. These algorithms are public domain or standardized
13 * by organizations such as NIST and are NOT the property of QRCS.
14 * - However, all source code, optimizations, and implementations in this library
15 * are original works of QRCS and are protected under this license.
16 *
17 * RESTRICTIONS:
18 * - Redistribution, modification, or unauthorized distribution of this software,
19 * in whole or in part, is strictly prohibited.
20 * - This software is provided for non-commercial, educational, and research
21 * purposes only. Commercial use in any form is expressly forbidden.
22 * - Licensing and authorized distribution are solely at the discretion of QRCS.
23 * - Any use of this software implies acceptance of these restrictions.
24 *
25 * DISCLAIMER:
26 * This software is provided "as is," without warranty of any kind, express or
27 * implied, including but not limited to warranties of merchantability or fitness
28 * for a particular purpose. QRCS disclaims all liability for any direct, indirect,
29 * incidental, or consequential damages resulting from the use or misuse of this software.
30 *
31 * FULL LICENSE:
32 * This software is subject to the **Quantum Resistant Cryptographic Solutions
33 * Proprietary License (QRCS-PL)**. The complete license terms are included
34 * in the LICENSE.txt file distributed with this software.
35 *
36 * Written by: John G. Underhill
37 * Contact: contact@qrcscorp.ca
38 */
39
40#ifndef DKTP_CONNECTIONS_H
41#define DKTP_CONNECTIONS_H
42
43#include "dktpcommon.h"
44#include "dktp.h"
45
66
78bool dktp_connections_active(size_t index);
79
91
101size_t dktp_connections_available(void);
102
115
127void dktp_connections_initialize(size_t count, size_t maximum);
128
136void dktp_connections_clear(void);
137
145void dktp_connections_dispose(void);
146
159
169bool dktp_connections_full(void);
170
181
191void dktp_connections_reset(uint32_t instance);
192
202size_t dktp_connections_size(void);
203
204#if defined(DKTP_DEBUG_MODE)
220void dktp_connections_self_test(void);
221#endif
222
223#endif
void dktp_connections_initialize(size_t count, size_t maximum)
Initialize the DKTP connections collection.
Definition connections.c:154
void dktp_connections_dispose(void)
Dispose of the DKTP connections collection.
Definition connections.c:82
bool dktp_connections_active(size_t index)
Determine if a connection state at the specified index is active.
Definition connections.c:16
bool dktp_connections_full(void)
Check if the connections collection is full.
Definition connections.c:119
size_t dktp_connections_size(void)
Get the total number of connection state items in the collection.
Definition connections.c:220
void dktp_connections_clear(void)
Clear all connection states in the collection.
Definition connections.c:71
size_t dktp_connections_available(void)
Get the number of available (inactive) connection states in the collection.
Definition connections.c:54
dktp_connection_state * dktp_connections_add(void)
Add a new connection state to the collection and mark it as active.
Definition connections.c:30
dktp_connection_state * dktp_connections_next(void)
Retrieve the next available (inactive) connection state from the collection.
Definition connections.c:180
void dktp_connections_reset(uint32_t instance)
Reset a specific connection state in the collection.
Definition connections.c:206
dktp_connection_state * dktp_connections_index(size_t index)
Retrieve a connection state pointer by its collection index.
Definition connections.c:105
dktp_connection_state * dktp_connections_get(uint32_t instance)
Retrieve a connection state by its unique instance number.
Definition connections.c:137
DKTP support header Common defined parameters and functions of the DKTP client and server implementat...
The DKTP socket connection state structure.
Definition dktp.h:902