1 unstable release

0.2.4 Feb 2, 2025

#1337 in Network programming

Download history 121/week @ 2025-02-02

121 downloads per month

MIT license

120KB
3K SLoC

Rust 2K SLoC // 0.0% comments C 1K SLoC // 0.1% comments

kcp-rs

A Rust implementation of KCP (Fast & Reliable ARQ Protocol).

Overview

KCP is a fast and reliable protocol that can achieve the reliability of TCP with the speed of UDP. This crate provides a Rust implementation with the following features:

  • Fast and reliable data transfer over UDP
  • Configurable parameters for different scenarios
  • Asynchronous API support

Installation

Add this to your Cargo.toml:

[dependencies]
kcp-rs = "0.2"

Quick Start

use kcp_rs::Kcp;

// Basic usage example coming soon

Documentation

For more detailed information on the API and usage, please refer to the API documentation.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Author

Sprite Tong spritetong@gmail.com

Dependencies

~2–13MB
~158K SLoC