~yujiri/libsufec

2b7341556ed38aeff93e7d571e70461bfbc5ff44 — Evin Yulo 1 year, 11 months ago 5f958c9
add contact struct
1 files changed, 7 insertions(+), 0 deletions(-)

M src/lib.rs
M src/lib.rs => src/lib.rs +7 -0
@@ 11,5 11,12 @@ pub use addr::SufecAddr;
pub use message::{Message, MessageContent};
pub use error::ServerError;
pub use server::{PORT, MAX_FILE_SIZE, connect, send, login, ListeningConn};
use prelude::*;

pub const MAX_HASHES_PER_MESSAGE: usize = u8::MAX as usize;

#[derive(Serialize, Deserialize, Clone)]
pub struct Contact {
	pub name: String,
	pub addr: SufecAddr,
}