Back to Site
Loading...
Searching...
No Matches
librats::PeerIOContext Struct Reference

PeerIOContext - Per-peer async I/O buffers and framing state. More...

#include <librats.h>

Collaboration diagram for librats::PeerIOContext:
[legend]

Public Attributes

ReceiveBuffer recv_buffer {8192}
 
ChainedSendBuffer send_buffer
 
std::unique_ptr< rats::NoiseHandshakeState > noise_hs
 
int noise_step = 0
 

Detailed Description

PeerIOContext - Per-peer async I/O buffers and framing state.

Used by the single-threaded IO loop for non-blocking message framing: recv_buffer – incoming bytes from recv(); frames parsed incrementally send_buffer – outgoing frames queued for non-blocking send() noise_hs – transient Noise XX handshake state (only during NOISE_PENDING) noise_step – current step in the 3-message XX pattern

Definition at line 48 of file librats.h.

Member Data Documentation

◆ noise_hs

std::unique_ptr<rats::NoiseHandshakeState> librats::PeerIOContext::noise_hs

Definition at line 53 of file librats.h.

◆ noise_step

int librats::PeerIOContext::noise_step = 0

Definition at line 54 of file librats.h.

◆ recv_buffer

ReceiveBuffer librats::PeerIOContext::recv_buffer {8192}

Definition at line 49 of file librats.h.

◆ send_buffer

ChainedSendBuffer librats::PeerIOContext::send_buffer

Definition at line 50 of file librats.h.


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