# kcp2k-nocookie **Repository Path**: eric8301/kcp2k-nocookie ## Basic Information - **Project Name**: kcp2k-nocookie - **Description**: unity 的mirrors框架的开源kcp服务器和客户端,原来版本在协议头上加了自己的cookie和扩展,删除了,以适配服务器kcp方式 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: nocookie - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-20 - **Last Updated**: 2024-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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. Previously, [where-allocation](https://github.com/vis2k/where-allocation) for a 25x reduction in server allocations. However: - It only worked with Unity's old Mono version. - It didn't work in Unity's IL2CPP builds, which are still faster than Mono + NonAlloc - It didn't work in regular C# projects. - Overall, the extra complexity is not worth it. Use IL2CPP instead. - Microsoft is considering to [remove the allocation](https://github.com/dotnet/runtime/issues/30797#issuecomment-1308599410). # Remarks - **Congestion Control** should be left disabled. It seems to be broken in KCP.