mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
rename crate "bittorrent_udp" to "aquatic_udp_protocol"
This commit is contained in:
parent
abc0034a45
commit
bc4ada104d
22 changed files with 46 additions and 48 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue