dope-tls 0.19.0

TCP TLS streams for dope runtime, shin-backed
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::state::{self, sessions};

pub(super) struct ConnectionState<'d, S: sessions::Peer> {
    pub(super) tls: state::State<'d, S>,
    pub(super) close: bool,
    pub(super) close_notify_sent: bool,
}

impl<'d, S: sessions::Peer> ConnectionState<'d, S> {
    pub(super) fn new(tls: state::State<'d, S>) -> Self {
        Self {
            tls,
            close: false,
            close_notify_sent: false,
        }
    }
}