From 72f65d94b5eb95ef4fc1632adea1cfe4022281dd Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 22 Jan 2018 02:31:00 -0800 Subject: WIP on synchronizer state machine --- src/peer.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/peer.rs') diff --git a/src/peer.rs b/src/peer.rs index c6f8c6d..0f04a40 100644 --- a/src/peer.rs +++ b/src/peer.rs @@ -13,15 +13,15 @@ use chan; /// Wraps a low-level DatConnection in a thread (or two). Contains very little context about /// itself. pub struct DatPeerThread { - handle: u64, + pub handle: u64, feeds: Vec<(u8, Key)>, outbound_chan: chan::Sender<(DatNetMessage, u8)>, } pub struct PeerMsg { - peer_handle: u64, - feed_index: u8, - msg: DatNetMessage, + pub peer_handle: u64, + pub feed_index: u8, + pub msg: DatNetMessage, } /// This is what the "receive" loop does: simply blocking reads on the TCP socket, passing any -- cgit v1.2.3