// Rshare - a file sharing program written in Rust.
// Copyright (C) 2017 Cooper Paul EdenDay
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// Electronic mail: cedenday@protonmail.com
// Paper mail: 100 Front Street, #31, Bath, Maine, 04530, USA

pub const PORT: u16 = 46425;
pub const MAX_MESSAGE_SIZE: u64 = 50 << 20;
pub const PART_SIZE: u64 = MAX_MESSAGE_SIZE - (5 << 20);
pub const MIN_DL_SPEED: u64 = 100 << 10;
pub const TIMEOUT: u64 = MAX_MESSAGE_SIZE / MIN_DL_SPEED;
pub const MAX_DLS: usize = 9;
pub const MAX_ULS: usize = MAX_DLS / 3;
pub const ADVERTS_INTERVAL: u64 = 15;
