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

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

#include <ctaps.h>

Data Fields

int(* encode_message )(ct_connection_t *connection, ct_message_t *message, ct_message_context_t *context, ct_framer_done_encoding_callback callback)
 Encode an outbound message before transmission.
 
void(* decode_data )(ct_connection_t *connection, ct_message_t *message, ct_message_context_t *context, ct_framer_done_decoding_callback callback)
 Decode inbound data into application messages.
 

Detailed Description

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

Currently only one framer is supported per Connection.

Definition at line 1284 of file ctaps.h.

Field Documentation

◆ decode_data

void(* ct_framer_impl_t::decode_data) (ct_connection_t *connection, ct_message_t *message, ct_message_context_t *context, ct_framer_done_decoding_callback callback)

Decode inbound data into application messages.

Parameters
[in]connectionThe connection
[in]messagereceived from transport layer
[in]contextMessage context containing endpoint info
[in]callbackCallback to invoke when decoding is complete

Definition at line 1307 of file ctaps.h.

◆ encode_message

int(* ct_framer_impl_t::encode_message) (ct_connection_t *connection, ct_message_t *message, ct_message_context_t *context, ct_framer_done_encoding_callback callback)

Encode an outbound message before transmission.

Implementation should call the provided callback when encoding is complete.

Parameters
[in]connectionThe connection
[in]messageThe message to encode
[in]contextMessage context
[in]callbackCallback to invoke when encoding is complete
Returns
0 on success, negative error code on failure

Definition at line 1296 of file ctaps.h.


The documentation for this struct was generated from the following file: