40#ifndef QSTP_CONNECTIONS_H
41#define QSTP_CONNECTIONS_H
QSTP common includes and definitions.
void qstp_connections_dispose(void)
Dispose of the connections collection.
Definition connections.c:83
void qstp_connections_reset(uint32_t instance)
Reset a connection state in the collection.
Definition connections.c:207
void qstp_connections_clear(void)
Erase all connection states in the collection.
Definition connections.c:72
size_t qstp_connections_available(void)
Get the number of available (inactive) connection states in the collection.
Definition connections.c:55
void qstp_connections_self_test(void)
Run the self-test for the connection collection.
Definition connections.c:226
qstp_connection_state * qstp_connections_index(size_t index)
Retrieve a connection state pointer by its collection index.
Definition connections.c:106
qstp_connection_state * qstp_connections_next(void)
Get the next available connection state.
Definition connections.c:181
qstp_connection_state * qstp_connections_add(void)
Add a new connection state to the collection and mark it as active.
Definition connections.c:31
void qstp_connections_initialize(size_t count, size_t maximum)
Initialize the connections collection.
Definition connections.c:155
bool qstp_connections_active(size_t index)
Check if a connection in the collection is active.
Definition connections.c:17
size_t qstp_connections_size(void)
Get the total number of connection state objects in the collection.
Definition connections.c:221
bool qstp_connections_full(void)
Check if the connection collection is full.
Definition connections.c:120
qstp_connection_state * qstp_connections_get(uint32_t instance)
Retrieve a connection state pointer using its instance number.
Definition connections.c:138
The QSTP socket connection state structure.
Definition qstp.h:1081