CTaps 0.3.0
A C implementation of the Transport Services API (RFC 9621 - 9623)
Loading...
Searching...
No Matches
Message Framer

Optional message framing and deframing interface. More...

Data Structures

struct  ct_framer_impl_t
 Opaque handle representing a framer layer, wrapping or unwrapping sent/received messages. More...
 

Typedefs

typedef int(* ct_framer_done_encoding_callback) (ct_connection_t *connection, ct_message_t *encoded_message, ct_message_context_t *context)
 Callback invoked by framer when message encoding is complete.
 
typedef void(* ct_framer_done_decoding_callback) (ct_connection_t *connection, ct_message_t *decoded_message, ct_message_context_t *context)
 Callback invoked by framer when message decoding is complete.
 

Detailed Description

Optional message framing and deframing interface.

Typedef Documentation

◆ ct_framer_done_decoding_callback

typedef void(* ct_framer_done_decoding_callback) (ct_connection_t *connection, ct_message_t *decoded_message, ct_message_context_t *context)

Callback invoked by framer when message decoding is complete.

Parameters
[in]connectionThe connection
[in]decoded_messageThe decoded message
[in]contextMessage context

Definition at line 1272 of file ctaps.h.

◆ ct_framer_done_encoding_callback

typedef int(* ct_framer_done_encoding_callback) (ct_connection_t *connection, ct_message_t *encoded_message, ct_message_context_t *context)

Callback invoked by framer when message encoding is complete.

Parameters
[in]connectionThe connection
[in]encoded_messageThe encoded message ready for transmission
[in]contextMessage context
Returns
0 on success, negative error code on failure

Definition at line 1260 of file ctaps.h.