|
CTaps 0.3.0
A C implementation of the Transport Services API (RFC 9621 - 9623)
|
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. | |
Opaque handle representing a framer layer, wrapping or unwrapping sent/received messages.
Currently only one framer is supported per Connection.
| 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) |
| 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.
| [in] | connection | The connection |
| [in] | message | The message to encode |
| [in] | context | Message context |
| [in] | callback | Callback to invoke when encoding is complete |