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

The path to the certificate.

The path to the private key.

The reset seed is used to create the stateless resets per Connection.

Methods

impl Config
[src]

[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.

[src]

Creates a Config that makes a Context usable as client.