40#ifndef DKTP_CONNECTIONS_H
41#define DKTP_CONNECTIONS_H
43#include "dktpcommon.h"
204#if defined(DKTP_DEBUG_MODE)
220void dktp_connections_self_test(
void);
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