Moving away from peer threads

This commit is contained in:
Mathias Hall-Andersen
2019-12-03 21:49:08 +01:00
parent 549b2cf5d0
commit 5a7f762d6c
14 changed files with 641 additions and 433 deletions

View File

@@ -18,7 +18,7 @@ use crossbeam_channel::Sender;
use x25519_dalek::PublicKey;
pub struct Peer<T: Tun, B: UDP> {
pub router: Arc<router::Peer<B::Endpoint, Events<T, B>, T::Writer, B::Writer>>,
pub router: Arc<router::PeerHandle<B::Endpoint, Events<T, B>, T::Writer, B::Writer>>,
pub state: Arc<PeerInner<T, B>>,
}