Struct picoquic::Config
[−]
[src]
pub struct Config { pub cert_filename: Option<String>, pub key_filename: Option<String>, pub reset_seed: Option<[u8; 16]>, }
Configuration used by Context
to setup Picoquic.
Fields
cert_filename: Option<String>
The path to the certificate.
key_filename: Option<String>
The path to the private key.
reset_seed: Option<[u8; 16]>
The reset seed is used to create the stateless resets per Connection
.
Methods
impl Config
[src]
fn server(cert_filename: &str, key_filename: &str) -> Config
[src]
Creates a Config
that makes a Context
usable as server. A server is also able to act as
client. So, if you want to support P2P connections, you should use this Config
.
fn client() -> Config
[src]
Creates a Config
that makes a Context
usable as client.