antenna-protocol 0.1.1

SansIO core driving the antenna P2P mesh protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod ser;

pub use ser::{
    deserialize_base64_keypair, deserialize_base64_pubkey, deserialize_base64_vec,
    serialize_base64_keypair, serialize_base64_pubkey, serialize_base64_vec,
};

/// Linear delay between reconnection attempts.
pub const RECONNECT_INTERVAL_MS: u64 = 2000;

/// Number of relay-based reconnection attempts before giving up on a lost peer
/// (and falling back to signaling-server rejoin if the local node is isolated).
pub const MAX_RECONNECT_ATTEMPTS: u32 = 5;