ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
acip_packet_plan_t Struct Reference

#include <include/ascii-chat/network/acip/prepare.h>

Data Fields

const socket_buffer_t * buffers
size_t count
size_t plaintext_size
size_t ciphertext_capacity
bool encrypt
crypto_record_t * records
bool records_locked
acip_send_options_t options
buffer_domain_t * domain
 Borrowed control reserve for handshake/error traffic; NULL otherwise.

Detailed Description

A borrowed packet description. Neither the vector array nor its bytes are owned. Keep both alive and immutable through encryption or synchronous delivery. Async delivery must copy/retain them before returning (platform_event_stream_write does). Serialize planning and encryption with other sends using the same crypto context.

Definition at line 16 of file prepare.h.

Field Documentation

◆ buffers

const socket_buffer_t* acip_packet_plan_t::buffers

Definition at line 17 of file prepare.h.

Referenced by acip_packet_encrypt().

◆ ciphertext_capacity

size_t acip_packet_plan_t::ciphertext_capacity

Definition at line 20 of file prepare.h.

Referenced by acip_packet_seal(), and send_packet_secure().

◆ count

size_t acip_packet_plan_t::count

Definition at line 18 of file prepare.h.

Referenced by acip_packet_encrypt().

◆ domain

buffer_domain_t* acip_packet_plan_t::domain

Borrowed control reserve for handshake/error traffic; NULL otherwise.

Definition at line 25 of file prepare.h.

Referenced by acip_packet_seal(), and send_packet_secure().

◆ encrypt

bool acip_packet_plan_t::encrypt

Definition at line 21 of file prepare.h.

Referenced by acip_packet_encrypt().

◆ options

acip_send_options_t acip_packet_plan_t::options

Definition at line 24 of file prepare.h.

Referenced by acip_packet_encrypt().

◆ plaintext_size

size_t acip_packet_plan_t::plaintext_size

Definition at line 19 of file prepare.h.

Referenced by acip_packet_encrypt().

◆ records

crypto_record_t* acip_packet_plan_t::records

Definition at line 22 of file prepare.h.

Referenced by acip_packet_encrypt().

◆ records_locked

bool acip_packet_plan_t::records_locked

Definition at line 23 of file prepare.h.

Referenced by acip_packet_encrypt().


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