|
CTaps 0.3.0
A C implementation of the Transport Services API (RFC 9621 - 9623)
|
Callback functions for receiving messages on a connection. More...
#include <ctaps.h>
Data Fields | |
| void(* | receive_callback )(ct_connection_t *connection, ct_message_t *received_message, ct_message_context_t *ctx) |
| Called when a complete message is received. | |
| void(* | receive_error )(ct_connection_t *connection, ct_message_context_t *ctx, const char *reason) |
| Called when a receive error occurs. | |
| void * | per_receive_context |
| Per-receive user context accessible when this specific callback is invoked. Can be fetched within ct_message_context_get_receive_context(ctx) | |
Callback functions for receiving messages on a connection.
Set these callbacks via ct_receive_message() to handle incoming data.
| void* ct_receive_callbacks_t::per_receive_context |
Per-receive user context accessible when this specific callback is invoked. Can be fetched within ct_message_context_get_receive_context(ctx)
| void(* ct_receive_callbacks_t::receive_callback) (ct_connection_t *connection, ct_message_t *received_message, ct_message_context_t *ctx) |
Called when a complete message is received.
| [in] | connection | The connection that received the message |
| [in] | received_message | Pointer to received message. Only valid during callback execution - copy if needed after return. |
| [in] | ctx | Message context with properties and endpoints |
| void(* ct_receive_callbacks_t::receive_error) (ct_connection_t *connection, ct_message_context_t *ctx, const char *reason) |