wrym_transport 0.1.0

Transport layer abstraction for wrym
Documentation
1
2
3
4
5
6
7
8
pub trait Transport {
    fn send_to(&self, addr: &str, bytes: &[u8]);
    fn recv(&mut self) -> Option<(String, Vec<u8>)>;
}

pub trait ReliableTransport {
    fn send_reliable_to(&self, addr: &str, bytes: &[u8], ordered: bool);
}