|
|
|
@ -2,12 +2,14 @@ use crate::core::value::{ |
|
|
|
ValueDecode, ValueDecodeError, ValueDecoder, ValueEncode, ValueEncodeError,
|
|
|
|
ValueEncoder,
|
|
|
|
};
|
|
|
|
use crate::peer::constants::*;
|
|
|
|
|
|
|
|
/*=========*
|
|
|
|
* MESSAGE *
|
|
|
|
*=========*/
|
|
|
|
|
|
|
|
const CODE_PIERCE_FIREWALL: u32 = 0;
|
|
|
|
const CODE_PEER_INIT: u32 = 1;
|
|
|
|
|
|
|
|
/// This enum contains all the possible messages peers can exchange.
|
|
|
|
#[derive(Clone, Debug, Eq, PartialEq)]
|
|
|
|
pub enum Message {
|
|
|
|
|