rename crate "bittorrent_udp" to "aquatic_udp_protocol"

This commit is contained in:
Joakim Frostegård 2020-05-25 19:21:52 +02:00
parent abc0034a45
commit bc4ada104d
22 changed files with 46 additions and 48 deletions

View file

@ -15,7 +15,7 @@ name = "aquatic_udp"
[dependencies]
anyhow = "1"
aquatic_common = { path = "../aquatic_common" }
bittorrent_udp = { path = "../bittorrent_udp" }
aquatic_udp_protocol = { path = "../aquatic_udp_protocol" }
cli_helpers = { path = "../cli_helpers" }
crossbeam-channel = "0.4"
hashbrown = "0.7"

View file

@ -6,7 +6,7 @@ use indexmap::IndexMap;
use parking_lot::Mutex;
pub use aquatic_common::ValidUntil;
pub use bittorrent_udp::types::*;
pub use aquatic_udp_protocol::types::*;
pub const MAX_PACKET_SIZE: usize = 4096;

View file

@ -7,7 +7,7 @@ use parking_lot::MutexGuard;
use rand::{SeedableRng, Rng, rngs::{SmallRng, StdRng}};
use aquatic_common::extract_response_peers;
use bittorrent_udp::types::*;
use aquatic_udp_protocol::types::*;
use crate::common::*;
use crate::config::Config;

View file

@ -9,8 +9,8 @@ use mio::{Events, Poll, Interest, Token};
use mio::net::UdpSocket;
use socket2::{Socket, Domain, Type, Protocol};
use bittorrent_udp::types::IpVersion;
use bittorrent_udp::converters::{response_to_bytes, request_from_bytes};
use aquatic_udp_protocol::types::IpVersion;
use aquatic_udp_protocol::converters::{response_to_bytes, request_from_bytes};
use crate::common::*;
use crate::config::Config;