WIP: more p2p code, mostly interaction between peer, protocol and server as well as ser/deser for first message types.

This commit is contained in:
Ignotus Peverell
2016-10-24 21:35:10 -07:00
parent 9f780f6865
commit 4657b09c4e
7 changed files with 378 additions and 77 deletions
+2
View File
@@ -33,6 +33,8 @@ pub enum Error {
expected: Vec<u8>,
received: Vec<u8>,
},
/// Data wasn't in a consumable format
CorruptedData,
/// When asked to read too much data
TooLargeReadErr(String),
}