KumoKyaku KCP is a C# implementation of the KCP reliable UDP protocol designed for high-performance .NET applications. It provides ready-to-use APIs while also allowing advanced users to customize segment handling and memory behavior. The project uses unsafe code and unmanaged memory internally to reduce garbage collection pressure, which is important for real-time systems. It supports Span<byte>, external buffer rental, and a generic KcpCore<Segment> architecture for performance-focused implementations. The library is partly thread-safe, allowing concurrent Send and Input calls while restricting concurrent Recv and Update calls for correctness. It is useful for game networking, real-time communication, and other latency-sensitive C# applications that need reliable delivery over UDP.
Features
- C# KCP protocol implementation
- Asynchronous API interface
- Unmanaged-memory performance design
- Generic segment customization
- Thread-safe Send and Input calls
- NuGet-based installation option