mod stream;
use self::stream::Stream;
use std::collections::HashMap;
pub struct Session {
pub accepted: bool, pub settings: HashMap<u16, u32>,
pub streams: HashMap<u32, Stream>
}
impl Session {
pub fn is_accepted(&self) -> bool {
return self.accepted;
}
pub fn accept(&mut self) {
self.accepted = true;
}
}