An open API service indexing awesome lists of open source software.

https://github.com/mirrornetworking/kcp2k


https://github.com/mirrornetworking/kcp2k

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# kcp2k
C# KCP based on the original C [kcp](https://github.com/skywind3000/kcp).

Works with **netcore** and **Unity**.

Developed for [Mirror Networking](https://github.com/MirrorNetworking/Mirror).

Questions & support on [Mirror Networking Discord](https://discord.gg/xVW4nU4C34).

# Features
* Kcp.cs based on kcp.c v1.7, line-by-line translation to C#
* Heavy test coverage
* Fixed [WND_RCV bug](https://github.com/skywind3000/kcp/pull/291) from original kcp
* Optional high level C# code for client/server connection handling
* Optional high level Unreliable channel added

Pull requests for bug fixes & tests welcome.

# Unity
kcp2k works perfectly with Unity, see the Mirror repository's KcpTransport.

# Allocations
The client is allocation free.
The server's SendTo/ReceiveFrom still allocate.

Microsoft is considering to [remove the remaining allocation](https://github.com/dotnet/runtime/issues/30797#issuecomment-1308599410).

# Remarks
- **Congestion Control** should be left disabled. It seems to be broken in KCP.