aboutsummaryrefslogtreecommitdiffstats
path: root/src/peer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/peer.rs')
-rw-r--r--src/peer.rs8
1 files changed, 4 insertions, 4 deletions
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