Move tokio_kcp to local files

This commit is contained in:
KernelErr
2021-10-26 23:02:05 +08:00
parent bfce455a7e
commit a88a263d20
15 changed files with 1010 additions and 19 deletions

View File

@@ -104,12 +104,12 @@ impl Server {
#[cfg(test)]
mod test {
use crate::plugins::kcp::{KcpConfig, KcpStream};
use std::net::SocketAddr;
use std::thread::{self, sleep};
use std::time::Duration;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
use tokio::net::{TcpListener, TcpStream};
use tokio_kcp::{KcpConfig, KcpStream};
use super::*;