kcp-rs 0.2.5

A Rust implementation of KCP Stream Protocol
Documentation
#![allow(dead_code)]

pub mod config;
pub mod protocol;

pub use crate::config::{KcpConfig, KcpNoDelayConfig};
pub use crate::protocol::Kcp;

#[cfg(feature = "stream")]
pub mod transport;

#[cfg(feature = "stream")]
pub mod stream;
#[cfg(feature = "stream")]
pub use crate::stream::KcpStream;
#[cfg(feature = "stream")]
mod halfclose;

#[cfg(feature = "udp")]
pub mod udp;
#[cfg(feature = "udp")]
pub use crate::udp::KcpUdpStream;

#[cfg(feature = "conv")]
pub mod conv;

/// Call after closing all KCP connections and before system exit
pub async fn kcp_sys_shutdown() {
    #[cfg(feature = "stream")]
    halfclose::HalfClosePool::shutdown().await;
}