#[repr(C)]pub struct ServerConfig {
pub max_connections: c_int,
pub chunk_size: c_int,
pub tls_enabled: c_int,
pub tls_cert_file: *const u8,
pub tls_key_file: *const u8,
pub tls_ca_file: *const u8,
pub tls_insecure: c_int,
pub max_pending_tls_per_addr: c_int,
pub max_connections_per_addr: c_int,
}Expand description
Server configuration struct.
Fields§
§max_connections: c_int§chunk_size: c_int§tls_enabled: c_intTLS / RTMPS fields
tls_cert_file: *const u8Server: PEM certificate chain file
tls_key_file: *const u8Server: PEM private key file
tls_ca_file: *const u8Client: CA bundle for verification (or NULL)
tls_insecure: c_intClient: skip certificate verification
max_pending_tls_per_addr: c_intMax incomplete TLS handshakes retained per remote peer IP before the
oldest is evicted to admit a new one. 0 (or negative) uses the
built-in default (see server::DEFAULT_MAX_PENDING_TLS_PER_ADDR).
Appended field: see docs/abi-policy.md (config struct fields may be
appended between minor releases).
max_connections_per_addr: c_intMax active (already-accepted) connections retained per remote peer
IP. 0 (or negative) uses the built-in default (see
server::DEFAULT_MAX_CONNECTIONS_PER_ADDR). Kept independent of
max_pending_tls_per_addr so tuning one does not change the other:
they defend different resources (the connection table vs. the
pending-handshake queue). Appended field: see docs/abi-policy.md.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more