Struct swiftlet_quic::endpoint::Config
source · pub struct Config {
pub idle_timeout_in_ms: u64,
pub reliable_stream_buffer: u64,
pub unreliable_stream_buffer: u64,
pub keep_alive_timeout: Option<Duration>,
pub initial_main_recv_size: usize,
pub main_recv_first_bytes: usize,
pub initial_rt_recv_size: usize,
pub rt_recv_first_bytes: usize,
pub initial_background_recv_size: usize,
pub background_recv_first_bytes: usize,
}
Expand description
The Endpoint Configuration Structure
Used when creating a new Endpoint
Fields§
§idle_timeout_in_ms: u64
The quic connection idle timeout in milliseconds.
reliable_stream_buffer: u64
The quic connection bidirectional stream receive buffer length in bytes.
These streams are intended for communicating reliable information. Most applications should probably set this to a multiple of 65536
unreliable_stream_buffer: u64
The quic connection unidirectional stream receive buffer length in bytes.
These streams are intended for real-time unreliable information. Most applications should probably set this to a multiple of 65536
keep_alive_timeout: Option<Duration>
The keep alive timeout duration.
If there is a value and the duration has passed since the quic connection had recieved anything the quic connection will send out a PING to try and keep the connection alive. Any potential keep alives currently occur right before the tick callback function is called.
initial_main_recv_size: usize
The initial main stream recieve buffer size.
This could be set to the max size of the expected data to process to avoid the minimal resize costs.
main_recv_first_bytes: usize
The number of bytes to receive on the main stream before calling main_stream_recv for the first time.
If this value is set to 0 it will be changed to 1 during endpoint creation
initial_rt_recv_size: usize
The initial real-time stream recieve buffer size.
This could be set to the max size of the expected data to process to avoid the minimal resize costs.
rt_recv_first_bytes: usize
The number of bytes to receive on the real-time stream before calling main_stream_recv for the first time.
If this value is set to 0 the
initial_background_recv_size: usize
The initial background stream recieve buffer size.
This could be set to the max size of the expected data to process to avoid the minimal resize costs.
background_recv_first_bytes: usize
The number of bytes to receive on the background stream before calling main_stream_recv for the first time.
If this value is set to 0 it will be changed to 1 during endpoint creation