add aquatic_common_tcp crate, move common functionality there

This commit is contained in:
Joakim Frostegård 2020-07-02 16:34:36 +02:00
parent 1eaf2a0351
commit 2e53a2adc1
14 changed files with 163 additions and 127 deletions

View file

@ -1,4 +1,4 @@
use std::net::{SocketAddr, IpAddr};
use std::net::SocketAddr;
use std::sync::Arc;
use flume::{Sender, Receiver};
@ -34,7 +34,7 @@ pub enum PeerStatus {
}
// identical to ws version - FIXME only if bytes left is optional
// almost identical to ws version - FIXME only if bytes left is optional
impl PeerStatus {
/// Determine peer status from announce event and number of bytes left.
///