aboutsummaryrefslogtreecommitdiffstats
path: root/src/router/mod.rs
blob: 7a29cd991622c7742af67a110f68ea486632bdac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
mod anti_replay;
mod constants;
mod device;
mod ip;
mod messages;
mod peer;
mod types;
mod workers;

#[cfg(test)]
mod tests;

use messages::TransportHeader;
use std::mem;

pub const SIZE_MESSAGE_PREFIX: usize = mem::size_of::<TransportHeader>();
pub const CAPACITY_MESSAGE_POSTFIX: usize = 16;

pub use messages::TYPE_TRANSPORT;
pub use device::Device;
pub use peer::Peer;
pub use types::Callbacks;